Today I Learned

hashrocket A Hashrocket project

Rename files in Git to a different case (on Mac)

Say you had a committed file, foo.txt and you wanted to rename that to Foo.txt.

Well, on Mac, changing the file name will not show up when you run git status.

So, what is the solution here?

git mv foo.txt Foo.txt

will rename the file, and let git keep track of it.

See More #git TILs