-
Notifications
You must be signed in to change notification settings - Fork 1
Git History and Search
Kenneth Kasajian edited this page Feb 17, 2021
·
2 revisions
git log
git log --pretty=oneline
git log --stat
git log -p -2
git log --pretty=format:"%h - %an, %ar : %s"
git log --oneline HEAD~5..HEAD
git log --graph --oneline --decorate --date-order
git log --graph --oneline --decorate --date-order --no-merges
git log -p --grep "nasty bug"
Or
git show :/'nasty bug'
git log -p -S 'Date.new'
Through all branches:
git log -S 'populate_database' --all
git log --author=<partial_name_of_user>
git log --since=2014-09-03 --until=2014-12-31
git log wip..master --oneline
http://www.held.org.il/blog/2013/03/navigating-through-the-git-history-like-a-boss/