Skip to content

Instantly share code, notes, and snippets.

@tamtamchik
Last active December 22, 2015 14:23
Show Gist options
  • Save tamtamchik/6ceedde2a2ef22f72b1d to your computer and use it in GitHub Desktop.
Save tamtamchik/6ceedde2a2ef22f72b1d to your computer and use it in GitHub Desktop.
remove_remote_merged
#!/bin/bash
git fetch --all --prune && git branch -r --merged | grep -v master | sed 's/origin\//:/' | xargs -n 1 git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment