Skip to content

Instantly share code, notes, and snippets.

@aileron
Created October 16, 2020 01:26
Show Gist options
  • Save aileron/69b39db454a7937501f8053c07eab0ba to your computer and use it in GitHub Desktop.
Save aileron/69b39db454a7937501f8053c07eab0ba to your computer and use it in GitHub Desktop.
よくつかう、git の エイリアス
[alias]
unstage = reset HEAD
delete-merged-branches = !git branch --merged | grep -v \\* | xargs git branch -d
delete-remote-branches = !git fetch --all --prune
delete-local-branches = !git branch | grep -v \\* | xargs git branch -D
delete-all-branches = !git delete-local-branches && git delete-remote-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment