title: git 'origin' does not appear to be a git repository when pushing to remote
body: <p>I created a bare repository and cloned it. In my cloned repository I made a commit. Now I'm trying to push this commit back to the repository I cloned from, which is defined as remote:</p>
  
  <pre><code>git remote -v
  origin: ssh://user@server.com/some/path/barerepo (fetch)
  origin: ssh://user@server.com/some/path/barerepo (push)
  </code></pre>
  
  <p>But I'm getting the following error:</p>
  
  <pre><code>fatal: '/some/path/barerepo' does not appear to be a git repository
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>What could be the problem?</p>
  
  <p><strong>EDIT:</strong>
  The problem was that some file inside barerepo folder didn't have execute permission. What file needs this permission?</p>