Skip to content

Instantly share code, notes, and snippets.

@lili21
Created May 9, 2016 07:31
Show Gist options
  • Select an option

  • Save lili21/3a3edf5cd6f40ace78f08fe358c89e98 to your computer and use it in GitHub Desktop.

Select an option

Save lili21/3a3edf5cd6f40ace78f08fe358c89e98 to your computer and use it in GitHub Desktop.
delete merged remote branch
git branch -r --merged master | sed 's/origin\///' | egrep -v 'master$' | xargs -n 1 git push origin --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment