Created
July 29, 2015 21:22
-
-
Save phil-scott-78/545d35f1c3b5f6896cb2 to your computer and use it in GitHub Desktop.
Git Aliases
This file contains hidden or 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
[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