title: Not expected log after renaming a file in Git
body: <p>I renamed a file in a git repository with:</p>
  
  <pre><code>git mv oldname.py newname.py
  </code></pre>
  
  <p>then <code>git status</code> gave me that the changes need to be committed are renaming the file. I didn't write <code>git add newname.py</code>.
  I committed and pushed to GitHub, then the name of the file was changed successfully.
  But when I saw the history of the file on GitHub, it was containing only the last commit, not all of its commits.</p>
  
  <p>Can someone please explain to me what happened?</p>