I think it should work to copy the directory to be renamed to a new directory with desired name, and delete the old directory, and git add, git commit and push everything. But is this the best way?
I think it should work to copy the directory to be renamed to a
Share
Basic rename (or move):
Case sensitive rename—eg. from
casesensitivetoCaseSensitive—you must use a two step:(More about case sensitivity in Git…)
…followed by commit and push would be the simplest way to rename a directory in a git repo.