尝试克隆一个裸 git 仓库:无法从远程仓库读取

尝试克隆一个裸 git 仓库:无法从远程仓库读取

我在 Mac OS 10.7 系统上设置了一个 git 用户。在根目录中有一个/repositories/test.gitrepo。当我尝试克隆它时,git clone git@server:repositories/test.git它失败了:

bash: git-upload-pack: command not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我究竟做错了什么?

答案1

https://stackoverflow.com/questions/225291/git-upload-pack-command-not-found-how-to-fix-this-correctly了解详细信息,但本质上服务器没有git-upload-pack正确的目录供非登录 shell 执行。

相关内容