Home » Questions » Computers [ Ask a new question ]

git-receive-pack : command not found

git-receive-pack : command not found

I made a git repo on a local machine with "git init --bare" and added it as the remote origin on the project on my main computer with ssh:

Asked by: Guest | Views: 163
Total answers/comments: 2
Guest [Entry]

"Ok, so I solved my problem.

I looks like the probleme was ssh not reading .bash_profile
What I had to do is write

export PATH=$PATH:/usr/local/bin

in .bashrc instead since ssh reads that file."
Guest [Entry]

"The standard installation of Git on OS X puts git in /usr/local/git/bin

The .bashrc path statement should look like

export PATH=$PATH:/usr/local/git/bin"