克隆尝试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的情况下为所有用户在系统范围的路径中获取此内容?
答案 0 :(得分:3)
从客户端角度来看
ssh clone -u /usr/local/git/bin/git-upload-pack <repository>
答案 1 :(得分:1)
将它放在系统范围的/ etc / profile
中答案 2 :(得分:-1)
我最终将git命令符号链接到/ bin