Last Updated: February 25, 2016
·
1.566K
· mriddle

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

1 Response
Add your response

Hm, good to know! Thanks

over 1 year ago ·