assumption: your format.pretty
begins with %h
, eg. format:%h %s (%an, %ad)
.
Last active
August 29, 2015 14:00
-
-
Save rctay/11138460 to your computer and use it in GitHub Desktop.
paging through git log by commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git -c core.pager='less -p"^[0-9a-f]{7} "' log -5 -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment