Skip to content

Instantly share code, notes, and snippets.

@hira22
Created July 31, 2023 06:31
Show Gist options
  • Save hira22/47d4ad9afc7d2f636103ed89eb9baecd to your computer and use it in GitHub Desktop.
Save hira22/47d4ad9afc7d2f636103ed89eb9baecd to your computer and use it in GitHub Desktop.
git vacuume
[alias]
vacuum = "!f () { git checkout $1; git branch --merged|egrep -v '\\*|develop|main'|xargs git branch -d; git fetch --prune; };f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment