【发布时间】:2012-03-16 07:00:05
【问题描述】:
我知道已经有类似的post,但似乎提出的解决方案对我不起作用...
我的同事在他的帐户下创建了一个存储库/git/work。在我的远程机器上,我可以执行以下操作:
... > git clone /users/.../HisAccount/git/work
Initialized empty Git repository in /import/.../MyAccount/work/.git/
但我需要远程控制我的机器/帐户,所以我在本地机器上尝试了以下操作并出现错误:
...@ubuntu$ git clone MyAccount@OurDomain:/users/.../HisAccount/git/work
Cloning into work...
MyAccount@OurDomain's password:
sh: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
在我的本地和远程机器上,我都可以看到/usr/bin/git-upload-pack。我本地机器上的path 是/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games;我的远程机器上的path 是/users/.../MyAccount/bin/ubuntu /users/.../MyAccount/bin /user/local/bin /usr/bin /bin /usr/hosts /usr/ucb /usr/openwin/bin .
在我的本地机器上,我也试过这个:
... > git clone -u /usr/bin/git-upload-pack MyAccount@OurDomain:/users/.../HisAccount/git/work
Cloning into work...
MyAccount@OurDomain's password:
sh: /usr/bin/git-upload-pack: No such file or directory
fatal: The remote end hung up unexpectedly
顺便说一句,我真的不知道.bashrc(用于 Bash)、.zshenv(用于 Zsh)或.cshrc(用于 tcsh)在哪里......
有人可以帮忙吗?
【问题讨论】: