I know there is already a similar post, but it seems that the solutions proposed do not work for me...
My colleague has created a repository /git/work
under his account. On my remote machine, I can do the following:
... > git clone /users/.../HisAccount/git/work
Initialized empty Git repository in /import/.../MyAccount/work/.git/
But I need to control remotely my machine/account, so I have tried the following on my local machine and got an error:
...@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
On my both local and remote machines, I can see /usr/bin/git-upload-pack
. The path
on my local machine is /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
; and the path
on my remote machine is /users/.../MyAccount/bin/ubuntu /users/.../MyAccount/bin /user/local/bin /usr/bin /bin /usr/hosts /usr/ucb /usr/openwin/bin .
On my local machine, I have also tried this:
... > 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
By the way, I don't really know where are .bashrc
(for Bash), .zshenv
(for Zsh) or .cshrc
(for tcsh)...
Could anyone help?