Tuesday, January 23, 2018

Rename/Move Files and Directories using git-mv

If you have used git, I am sure you must have experienced this where you have renamed files/folders specially a case change, it won't reflect in the remote. For instance, if you rename a file from helloworld.txt to helloWorld.txt or HelloWorld.txt, even though it's changed in the local, it won't get changed in the remote. 

In such cases, git-mv is a really handy command. A guy named Patrick Wied has written this wonderful post back in 2012 explaining use of git-mv with different scenarios. Great post!

Hope this helps.

Happy Coding.

Regards,
Jaliya

No comments:

Post a Comment