How can I push an already existing file on GitHub, but this time with a different name?

Viewed 28

I created a project folder and push its content to GitHub Now I decided to change files names ( from Structure to structure for example) Once I push again, the name of the file still the same on Github. Any help would be appreciated.

Regards

1 Answers

if you want to rename a file, you can use git mv oldfile newfile

Otherwise, if you stage all the files, git wll detect that one file is deleted and the other is new. Note that some operating systems are not case sensitive for filenames (e.g. windows)

Related