Skip to content

Instantly share code, notes, and snippets.

@bmorwood
Created April 2, 2014 14:41
Show Gist options
  • Save bmorwood/9935560 to your computer and use it in GitHub Desktop.
Save bmorwood/9935560 to your computer and use it in GitHub Desktop.
[alias]
lg1 = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(green)%s%C(reset) %C(bold green)— %an%C(reset)%C(bold red)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit
lg = !"git lg1"
delete-merged-branches = "!f() { git checkout --quiet develop && git branch --merged | grep --invert-match '\\*' | xargs -n 1 git branch --delete; git checkout --quiet @{-1}; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment