I renamed a file in a git repository with:
git mv oldname.py newname.py
then git status
gave me that the changes need to be committed are renaming the file. I didn't write git add newname.py
.
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.
Can someone please explain to me what happened?