Last active
June 6, 2016 10:01
-
-
Save xperienced/6445aee7a68ac5cdd980 to your computer and use it in GitHub Desktop.
Git aliases
This file contains 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] | |
cp = cherry-pick | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
cob = checkout -b | |
df = diff | |
lg = log --graph --oneline --all --decorate | |
cm = !git add -A && git commit -m | |
branch-name = !git symbolic-ref --short HEAD | |
publish = "!git push -u origin $(git branch-name)" | |
unpublish = "!git push origin :$(git branch-name)" | |
cleanup = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d" | |
purr = pull --rebase | |
puff = pull --ff-only |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment