Git克隆ssh缺少git-upload-pack

时间:2011-03-09 21:38:55

标签: git

克隆尝试ssh:

Cloning into repo...
Password:
bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly


Chris-Muenchs-Mac-Book-Pro:rails_projects cmuench$ ssh chrismuench@example.com echo \$PATH
Password:
/usr/bin:/bin:/usr/sbin:/sbin

git的东西在:

/usr/local/git/bin (Defined in:  /etc/paths.d/git)

如何在不需要修改〜/ .bash_profile的情况下为所有用户在系统范围的路径中获取此内容?

3 个答案:

答案 0 :(得分:3)

从客户端角度来看

ssh clone -u /usr/local/git/bin/git-upload-pack <repository>

答案 1 :(得分:1)

将它放在系统范围的/ etc / profile

答案 2 :(得分:-1)

我最终将git命令符号链接到/ bin