Skip to content

Instantly share code, notes, and snippets.

@fwielstra
Created August 16, 2016 07:00
Show Gist options
  • Save fwielstra/9718cea1cc69566182bcda3a32e6c96a to your computer and use it in GitHub Desktop.
Save fwielstra/9718cea1cc69566182bcda3a32e6c96a to your computer and use it in GitHub Desktop.
git list shizzle
# log format base
lformat = log --pretty=format:'%Cred%h%Creset %C(bold blue)%an%Creset %Cgreen(%cr) %Creset-%C(yellow)%d%Creset %s'
# formatted, graph, branches
l = !git lformat --graph --branches
# formatted, graph current branch only
lb = !git lformat --graph
# formatted, topo-order (?)
lt = !git lformat --graph --branches --topo-order
# formatted, no pager (use with -n to show last X entries)
lnp = !git --no-pager l
# show last 5, 10, 25 logs with graph, without pager.
ll = !git lnp -n5
lll = !git lnp -n10
llll = !git lnp -n25
llb = !git --no-pager lb -n5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment