Trying to use the git clone
command. My understanding (please correct if wrong) was that in order to host a Git repository you just need a machine running ssh and t
You need to have Git installed on the machine that has Git repository you want to clone; also git-upload-pack
has to be in $PATH on remote machine when doing ssh. Do you get something like the following response when directly ssh-ing to remote machine:
$ ssh username@host git-upload-pack --help
usage: git upload-pack [--strict] [--timeout=nn] <dir>
or the following (wrong) response:
$ ssh username@host git-upload-pack --help
bash: git-upload-pack: command not found
(of course name of shell depends on what remote side is using).
What also might be problem (although perhaps not in your case) is having misconfigured remote machine so that uses interactive shell for ssh connection, either giving some messages on connection, or setting interactive variables like infamous $CDPATH environmental variable.
If you're using SSH make sure you also have all the SSH keys setup correctly.
http://help.github.com/mac-set-up-git/
For msysgit, using the -u option to supply the path to git-upload-pack does not work when the path includes spaces because quotes (single, double) seem not to be supported (1.7.11.msysgit.1). Adding it to my PATH worked (C:\Program Files (x86)\Git\libexec\git-core). [However, I have additional problems with my setup]