git doesn't detect file name change code example
Example 1: how to remove file changes in git
git clean -df
git checkout -- .
Example 2: linux change file name
mv oldfile.txt newfile.txt
git clean -df
git checkout -- .
mv oldfile.txt newfile.txt