Skip to content

Instantly share code, notes, and snippets.

@gcollic
Last active February 24, 2020 15:38
Show Gist options
  • Save gcollic/6507901 to your computer and use it in GitHub Desktop.
Save gcollic/6507901 to your computer and use it in GitHub Desktop.
Pretty log for comparison between head and origin
[alias]
#lg = log --oneline --decorate --graph
lg = log --graph --format=format:'%C(yellow)%h%C(reset) %C(white)%s%C(reset)%C(auto)%d%C(reset)%C(dim white) %C(reset)%C(dim cyan)%ar%C(reset)%C(dim white) %aN <%aE>%C(reset)'
lga = !git lg --all
lgo = !git lg HEAD origin/master --not `git merge-base HEAD origin/master`^@
lgd = !git lg HEAD origin/develop --not `git merge-base HEAD origin/develop`^@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment