case sensitive filename Use git mv File.txt file.txt to rename the file locally as well as in the staging area. Then commit your changes git commit -m "m1"