Skip to content

Instantly share code, notes, and snippets.

@rokinmaharjan
Created February 7, 2019 14:10
Show Gist options
  • Select an option

  • Save rokinmaharjan/e5423058257a6dd4b88ae4e90889c3c8 to your computer and use it in GitHub Desktop.

Select an option

Save rokinmaharjan/e5423058257a6dd4b88ae4e90889c3c8 to your computer and use it in GitHub Desktop.
Delete branches not in remote
git branch --merged >/tmp/merged-branches && nano /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment