tags:

views:

341

answers:

1

Hi Guys,

Wondering how to fix this problem in Windows ?

When i try and use the command "git push origin master" I get

git-receive-pack: command not found

Any idea how I can fix this in windows ?

The path to GIT is in c:/program files/Git/Bin/ but unsure how to set this ?

Thx

Edit: doing

git--exec-path
c:\Program Files\Git/libexec/git-core

Now how to setup this somewhere?

+1  A: 

From Git FAQ:

Basically the problem is that 'git-receive-pack' is not in the default $PATH on the remote end.

You can see the problem using a DOS window:

set PATH

(display the path)

type

set PATH=%PATH%;"c:/program files/Git/Bin"
git push origin master

If that solves the problem, you will be better off adding that path in your user environment variables (see this superuser question for instance)


Or a bash Git shell:

$ export PATH=$PATH:"/c/Program Files/Git/bin"
$ git push origin master

Check also your .bashrc in your $HOME path ('echo $HOME' within a bash session; add the export line in it, or simply '~/.bashrc')


Note: a classic msysgit installation should have taken care of those path.

VonC
hey thx for the comment - i type that into the Git BASH and it comes up with sh.exe": c:/program files/Git/Bin: is a directory" then I still get the when I try git push ?
:) thanks a lot i am entering the bash GIT path - and when i try ssh localhost echo \$path - nothing appears after I do it ? i am stumped?