Monday, 27 October 2014

Git log search for term or follow file

I've been tracking down file changes quite a bit lately in git.. Here's how:

Look for a specific word or term

git log -g --grep=SEARCH_THISgit log -SSEARCH_FOR+THIS

Look for changes to a specific file?

git log --follow somefile/somewhe.re
gitk somefile/somewhe.re
git log -p somefile/somewhe.re

git log -pfollow -p file

Isn't tracking down whodunnits fun?

No comments:

Post a Comment