Skip to content

Instantly share code, notes, and snippets.

@phil-scott-78
Created July 29, 2015 21:22
Show Gist options
  • Save phil-scott-78/545d35f1c3b5f6896cb2 to your computer and use it in GitHub Desktop.
Save phil-scott-78/545d35f1c3b5f6896cb2 to your computer and use it in GitHub Desktop.
Git Aliases
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
branch-name = !git rev-parse --abbrev-ref HEAD
whats-new = !git log develop.. --oneline
delete-merged = "!f() { git checkout --quiet develop && git branch --merged | grep --invert-match '\\\\*' | xargs -n 1 git branch --delete; git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment