我正在尝试在我的服务器(Oracle Linux 6)上执行以下 git 命令:
git ls-remote -h https://<my-repo-path>.git
但它会引发以下错误:
error: The requested URL returned error: 501 Method Not Implemented while accessing https://<my-repo-path>.git/info/refs
Git 版本是 1.7.1,我无法将它更新到任何最新版本(除非我从源代码构建它,我现在不愿意这样做)。有人可以帮忙吗?