title: Git - Commit failed with error: branch is up-to-date, but there are actually changes to be committed
body: <p>The issue I'm asking about is only the third step of a big conundrum for me.</p>
  
  <ol>
  <li>All started with the .gitignore file which wasn't working.
  I googled and I found that typing <code>git rm -r --cached .</code> at the top folder of my repo, and then <code>git add .</code> after editing my .gitignore file and committing everything should have worked.</li>
  <li><p>But, when trying to commit everything I received a commit error (and consequent failure) message due to the warning:</p>
  
  <blockquote>
    <p>LF will be replaced by CRLF</p>
  </blockquote>
  
  <p>I then googled again and: checked if <code>core.autocrlf</code> was true (and it was) and tried making the warning go away with <code>git congif --global core.safecrlf false</code>.</p></li>
  </ol>
  
  <p>This brings me to the third and last step</p>
  
  <ol start="3">
  <li><p>When I tried to finally commit my .gitignore changes to my repo, I received from the IDE:</p>
  
  <blockquote>
    <p>Commit failed with error 0 files committed, 1462 files failed to commit: Fixes .gitignore</p>
    
    <p>On branch develop
    Your branch is up-to-date with 'origin/develop'.
    nothing to commit, working directory clean</p>
  </blockquote></li>
  </ol>
  
  <p>This is, though, what I get from <code>git status</code> for all my 1462 files:</p>
  
  <blockquote>
    <p>On branch develop</p>
    
    <p>Your branch is up-to-date with 'origin/develop'.</p>
    
    <p>Changes to be committed:
      (use "git reset HEAD ..." to unstage)</p>
    
    <p>deleted:    .idea/vcs.xml<br>
    modified:   app/.gitignore<br>
    deleted:    app/app.iml<br>
    deleted:    app/build/generated/source/buildConfig/androidTest/debug/com/android_
    application/adiuvapp_verbalatina/test/BuildConfig.java</p>
  </blockquote>
  
  <p>I think that at this point I should use <code>git reset HEAD...</code> but I really don't want mess anything up!</p>
  
  <p>How can I solve this?</p>