我在 Mac OS 10.7 系统上设置了一个 git 用户。在根目录中有一个/repositories/test.git
repo。当我尝试克隆它时,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 执行。