title: Git problems with git push --all
body: <p>I have a base repository that lives on a UNC \machine\share ....etc.
  I have a local clone that I work on  in the master branch and occasionally merge over to the "stable" branch.</p>
  
  <p>usually I do a
  <code>git push --all</code></p>
  
  <p>to move all changes in all branches up to the server. After creating a new branch
  <code>git branch MultiCompany</code></p>
  
  <p>and then pushing it to the server
  <code>git push --all</code></p>
  
  <p>which creates the branch on the server also. I did some work, committed all the changes in multicompany branch and then tried to do a
  <code>git push --all</code></p>
  
  <p>and got the following error:</p>
  
  <pre><code>cdturner@OAHU ~/desktop/git sourcetree/maerekai.web.framework (multicompany) 
  $ git push --all
  Counting objects: 28, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (22/22), done.
  Writing objects: 100% (23/23), 11.34 KiB, done.
  Total 23 (delta 8), reused 0 (delta 0)
  Unpacking objects: 100% (23/23), done.
  error: Ref refs/heads/multicompany is at bd5a32df35ce8d5ae30ce999af34c4c5f35581df but expected 0000000000000000000000000000000000000000
  remote: error: failed to lock refs/heads/multicompany
  To //pluto/users/cdturner/Git repositories/Maerekai.web.framework.git
   ! [remote rejected] multicompany -&gt; multicompany (failed to lock)
  error: failed to push some refs to '//pluto/users/cdturner/Git repositories/Maerekai.web.framework.git'
  </code></pre>
  
  <p>I tried to back out the last commit with<code>git reset --hard HEAD^</code></p>
  
  <p>and then retried the push.....</p>
  
  <pre><code>cdturner@OAHU ~/desktop/git sourcetree/maerekai.web.framework (multicompany)
  $ git push --all
  Total 0 (delta 0), reused 0 (delta 0)
  error: Ref refs/heads/multicompany is at bd5a32df35ce8d5ae30ce999af34c4c5f35581df but expected 0000000000000000000000000000000000000000
  remote: error: failed to lock refs/heads/multicompany
  To //pluto/users/cdturner/Git repositories/Maerekai.web.framework.git
   ! [remote rejected] multicompany -&gt; multicompany (failed to lock)
  error: failed to push some refs to '//pluto/users/cdturner/Git repositories/Maerekai.web.framework.git'`
  </code></pre>