Skip to content

Instantly share code, notes, and snippets.

@SeanSobey
Last active February 24, 2020 12:24
Show Gist options
  • Save SeanSobey/1a5ecc906bc79d219b9a52f69b3a6530 to your computer and use it in GitHub Desktop.
Save SeanSobey/1a5ecc906bc79d219b9a52f69b3a6530 to your computer and use it in GitHub Desktop.
Git sync comnmand as alias
[alias]
sync = "! git fetch && git remote prune origin && git branch --merged | tr -d '* ' | grep -vE '^\\s*master' | xargs -n1 -r git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment