title: Right way to share a git repo over ssh
body: <p>I'm using a box as a shared repo, and my team connects to it via <strong>ssh</strong>.</p>
  
  <p>What I do is:</p>
  
  <ol>
  <li><p>Create an empty git repository on the central machine <code>git init</code></p></li>
  <li><p>Then from each workstation do something like <code>git clone ssh://user@central-box/Users/user/Projects/my-project/.git/</code></p></li>
  </ol>
  
  <p>This works nice, but git keeps yelling at me every time I make a push something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/GIUL2.png" alt="alt text"></p>
  
  <p>Is there a better way of sharing a repo <strong>over ssh</strong>.</p>
  
  <p><strong>IMPORTANT:</strong> I'm well aware of the existence of <code>gitosis</code> and tools like that, I do not want anything fancy. Just sharing a .git repo over ssh.</p>
  
  <p>Thanks</p>