title: Git Push error - insufficient permission
body: <p>I have been working in this git repo for a few weeks now, and have been the only one using it. A previous worker set everything up and then handed it down to me later after he moved on. Everything has been working fine, until one day I was making a new change and went to <code>git push</code> and got this error</p>
  
  <pre><code>Counting objects: 5, done.
  Delta compression using up to 8 threads.
  Compressing objects: 100% (5/5), done.
  Writing objects: 100% (5/5), 442 bytes | 0 bytes/s, done.
  Total 5 (delta 4), reused 0 (delta 0)
  remote: error: insufficient permission for adding an object to repository database ./objects
  remote: fatal: failed to write object
  error: unpack failed: unpack-objects abnormal exit
  To git@myserver:/path/to/repo.git
   ! [remote rejected] master -&gt; master (unpacker error)
  error: failed to push some refs to 'git@myserver:/path/to/repo.git'
  </code></pre>
  
  <p>I looked into this and found some solutions people were giving. So I found this:</p>
  
  <pre><code>ssh me@myserver
  cd repository/.git
  
  sudo chmod -R g+ws *
  sudo chgrp -R mygroup *
  
  git config core.sharedRepository true
  </code></pre>
  
  <p>But, I do not know what <code>mygroup</code> is, and I am not sure of how to find what that name is. Are there any other solutions to this problem or can someone show me how to find the group name? Thanks.</p>