git log following file rename
When a file lives in a folder that's been renamed the history gets cut when using 'git log'. To see all the history for that file before and after the parent folder rename use the following.
Where foo is the new folder, git figures out the rest for you.
git log --follow -- foo/README.md
Written by Matthew Riddle
Related protips
1 Response
Hm, good to know! Thanks
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#