Skip to content

Instantly share code, notes, and snippets.

@danilogco
Last active May 13, 2021 15:02
Show Gist options
  • Save danilogco/5e1d557960908e2b015c2bb02a6081fa to your computer and use it in GitHub Desktop.
Save danilogco/5e1d557960908e2b015c2bb02a6081fa to your computer and use it in GitHub Desktop.
git config -e --global
[alias]
cleanup = "!git fetch -f && git branch | grep -v "dev" | grep -v "master" | xargs --no-run-if-empty git branch -D && git gc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment