Skip to content

Instantly share code, notes, and snippets.

@ZaxR
Created August 19, 2019 19:26
Show Gist options
  • Save ZaxR/62466c759be99cdc64308f0b988cad29 to your computer and use it in GitHub Desktop.
Save ZaxR/62466c759be99cdc64308f0b988cad29 to your computer and use it in GitHub Desktop.
Git Aliases
...
[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