title: git on mac osx: how to push filename cases to origin?
body: <p>I have changed the case of some directories in my git repository.
  Then I pushed them and noticed the cases where not updated.</p>
  
  <p>Then I found this question:
  <a href="https://stackoverflow.com/questions/3011625/git-mv-and-only-change-case-of-directory">git mv and only change case of directory</a></p>
  
  <p>I have followed the advice to use:</p>
  
  <pre><code>git add -A
  git commit --amend -m 'updated cases'
  git push origin
  </code></pre>
  
  <p>but instead of success the git server is returning:</p>
  
  <pre><code>To git@github.com:kyogron/example.git
   ! [rejected]        master -&gt; master (non-fast-forward)
  error: failed to push some refs to 'git@github.com:kyogron/example.git'
  To prevent you from losing history, non-fast-forward updates were rejected
  Merge the remote changes (e.g. 'git pull') before pushing again.  See the
  'Note about fast-forwards' section of 'git push --help' for details.
  </code></pre>
  
  <p>What can I now do to update the cases without breaking more in my git repo?</p>
  
  <p>Regards,</p>
  
  <p>bodo</p>
  
  <p>PS: To avoid this issue in future you can use:</p>
  
  <pre><code>git config core.ignorecase false
  </code></pre>