Created
August 19, 2019 19:26
-
-
Save ZaxR/62466c759be99cdc64308f0b988cad29 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] | |
gone = "!f() { git branch -D $1 | git push origin --delete $1; }; f" | |
save = commit -am | |
wip = commit -am "WIP" | |
new = "!f() { git checkout -b $1 develop; }; f" | |
slog = log --abbrev-commit --color=auto --decorate=short --pretty=oneline --graph --branches=* --remotes=* --tags=* | |
sweep = "!f() { git remote prune origin && git branch --merged | egrep -v \"(^\\*|master|develop)\" | xargs git branch -d; }; f" | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment