title: Git : Failed at pushing to remote server, ' REPOSITORY_PATH ' is not a git command
body: <p>I'm using Git with TortoiseGit on Windows XP,
  and I have a remote bare repository on Windows Vista 64bit version.</p>
  
  <p>When I tried to push my local files to remote bare repository, I got the following error message.</p>
  
  <pre><code>git.exe push    "origin" master:master
  
  git: '/Git_Repository/.git' is not a git command. See 'git --help'.
  
  fatal: The remote end hung up unexpectedly
  </code></pre>
  
  <p>the arbitrary URL is : username@serverip:/Git_Repository/.git</p>
  
  <p>The same arbitrary URL worked just fine while doing clone/fetch/pull.</p>
  
  <p>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.</p>
  
  <p>I can push/pull at GitHub correctly but I was using URL provide by GitHub.</p>
  
  <p>Does anyone know what's wrong with my configuration?</p>
  
  <p>Here is my remote .git/config</p>
  
  <pre><code>[core]
  repositoryformatversion = 0
  filemode = false
  bare = true
  logallrefupdates = true
  ignorecase = true
  hideDotFiles = dotGitOnly
  </code></pre>
  
  <p>Here is my local .git/config</p>
  
  <pre><code>[core]
  repositoryformatversion = 0
  filemode = false
  bare = false
  logallrefupdates = true
  symlinks = false
  ignorecase = true
  hideDotFiles = dotGitOnly
  [remote "origin"]
  fetch = +refs/heads
  url = username@serverip:/Git_Repository/.git
  [branch "master"]
  remote = origin
  merge = refs/heads/master
  </code></pre>
  
  <p>I edited the URL to make it more precise，but it still show the same error</p>
  
  <p>Even more, no matter what I type after the serverip, it still shows the same error message</p>
  
  <p>if the URL is </p>
  
  <blockquote>
    <p>ssh://user@server ip/Git_Repositorywrongname/.git</p>
  </blockquote>
  
  <p>then the error message</p>
  
  <blockquote>
    <p>git: '/Git_Repositorywrongname/.git' is not a git command. See 'git --help'.</p>
  </blockquote>
  
  <p>When user connects to the remote repository, the executed git commands are from bin directories in SSH. So I believe therer is wrong with my SSH configuration and this is why I can do git operations normally in local/ local in the remote machine.</p>
  
  <p>I followed the guide in <a href="http://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP" rel="nofollow noreferrer">http://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP</a> and linked the 4 commands</p>
  
  <p>Did I miss anything?</p>
  
  <p>Thanks for your reading</p>