Created
December 8, 2017 14:25
-
-
Save sanderploegsma/a7017791e0d668854abdd84bd70b4711 to your computer and use it in GitHub Desktop.
Global 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 --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
st = status | |
co = checkout | |
cm = commit | |
cp = cherry-pick | |
cl = !sh -c \"git branch --merged master | grep -v -e 'master' -e '\\*' | xargs -n 1 git branch -d && git remote prune origin\" | |
up = !sh -c \"git push && git push --tags\" | |
br = branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment