Wednesday, 7 August 2013

Error in cloning a git repo using ssh

Error in cloning a git repo using ssh

I am trying to clone a git repo over ssh. These are the steps I have
performed. Setup cygwin and sshd on my windows machine. Created a bare git
repo on this windows server machine. Now from the client machine I try to
push code to the server and it does not work. I get the following error
bash: git-receive-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So the Git repo is named SampleRepo on the windows server, and on the
client machine I am adding the origin using the following command,
git remote add origin username@192.168.1.56:~/GITREPO/SampleRepo
The command has the same relative path of the repo on the server. Do you
have any clue what I am doing wrong.

No comments:

Post a Comment