Skip to content

Instantly share code, notes, and snippets.

@arthurchui
Created May 27, 2017 06:22
Show Gist options
  • Select an option

  • Save arthurchui/a31681f4f8ea2cf6579ee5311d35a399 to your computer and use it in GitHub Desktop.

Select an option

Save arthurchui/a31681f4f8ea2cf6579ee5311d35a399 to your computer and use it in GitHub Desktop.
git-delete-merged-remote
#!/bin/bash
git branch -r --merged | grep origin | sed 's/origin\///' | xargs -n 1 git push --delete origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment