Just a quick one, as I’ve having fun with TortoiseGit talking (via SSH) to my Mac Mini, which has a SVN-pulled codebase on it.
I got this error when I tried to do an initial clone (or anything else):
git-upload-pack : command not found
After a bit of a google around, the solution is easy. This assumes you have git on the remote server.
First, run the following command (from anywhere which has ssh):
ssh you@yourserver echo \$PATH
This will echo a path – in my case:
/usr/bin:/bin:/usr/sbin:/sbin
Check to see where git is installed. In my case, it’s in /usr/local/git/bin. The easy way to tell is to ssh in (ssh you@yourserver) and then run echo $PATH
Once you have the correct bit of path, on the server, edit your .bashrc file, to include the git path
PATH=$PATH:/usr/local/git/bin
Go about life, cloning your repo etc. TortoiseGit works like a charm.