git
How to keep Git history after renaming or moving files
· 1 min read
Have you noticed that after renaming or moving a file git override and create a brand new git history? Lets fix this!
Just use git mv
git mv foo.txt bar.txt
git commit
Easy enough to miss this and just forget it but it will help out while tracking back some issues in the future.