Created
October 31, 2012 02:22
-
-
Save simonbaird/3984436 to your computer and use it in GitHub Desktop.
Nice brief git logs
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
[core] | |
# -E means don't page if less one screen | |
# -F means quit when EOF reached | |
# -r fixes the %C(yellow)%+d colouring somehow | |
pager = less -E -F -r | |
[alias] | |
ll = log --pretty=nice -n 30 # about one screen worth | |
lll = log --pretty=nice # goes back forever | |
[pretty] | |
# %h is short commit hash | |
# %cr is time ago in words | |
# %cn is committer name | |
# %s is the commit message title | |
# %+d is a line break and a list of refs | |
nice = format:%Cblue%h %Cred%cr %Cgreen%cn%Creset - %s%C(yellow)%+d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment