git-receive-pack: command not found in Windows

git

Solution

You need to add the bin folder path where git was installed to the PATHS of the Windows System Environment variables. But if you have installed git using a 64-bit installer the path is different:

C:\Program Files\Git\mingw64\bin

notice the sub path "mingw64".

Problem

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?

Original source