Git : Failed at pushing to remote server, ' REPOSITORY_PATH ' is not a git command

Posted by Judarkness on Stack Overflow See other posts from Stack Overflow or by Judarkness
Published on 2010-03-31T04:01:28Z Indexed on 2010/03/31 7:13 UTC
Read the original article Hit count: 321

Filed under:
|

I'm using Git with TortoiseGit on Windows XP, and I have a remote bare repository on Windows Vista 64bit version.

When I tried to push my local files to remote bare repository, I got the following error message.

git.exe push    "origin" master:master

git: 'C:/Git_Repository/.git' is not a git command. See 'git --help'.

fatal: The remote end hung up unexpectedly

the arbitrary URL is : username@serverip:C:/Git_Repository/.git

The same arbitrary URL worked just fine while doing clone/fetch/pull.

Access from a local directory in remote machine to this bare repository has no problem either so I belive there is something wrong with my path.

I can push/pull at GitHub correctly but I was using URL provide by GitHub.

Does anyone know what's wrong with my configuration?

Here is my remote .git/config

[core]
repositoryformatversion = 0
filemode = false
bare = true
logallrefupdates = true
ignorecase = true
hideDotFiles = dotGitOnly

Here is my local .git/config

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
fetch = +refs/heads
url = username@serverip:C:/Git_Repository/.git
[branch "master"]
remote = origin
merge = refs/heads/master

Thanks for the reminding

© Stack Overflow or respective owner

Related posts about git

Related posts about error