Skip to content

Instantly share code, notes, and snippets.

@Lavode
Created July 5, 2018 13:20
Show Gist options
  • Save Lavode/4369a80f1e6b94e079f366538e1975c8 to your computer and use it in GitHub Desktop.
Save Lavode/4369a80f1e6b94e079f366538e1975c8 to your computer and use it in GitHub Desktop.
Git 101
# Delete merged branches
git branch -r --merged develop | grep -vF '/develop' | sed -nE -e 's|origin/(.*)|\1|p' | xargs -I{} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment