Skip to content

Instantly share code, notes, and snippets.

@NOX73
Last active August 15, 2019 08:23
Show Gist options
  • Select an option

  • Save NOX73/70e332751e0705d620e0aca40e85a80d to your computer and use it in GitHub Desktop.

Select an option

Save NOX73/70e332751e0705d620e0aca40e85a80d to your computer and use it in GitHub Desktop.
Remove remote merged branches
git fetch -p origin
git branch -r --merged origin/develop | grep "feature" | sed -e 's|origin/||' | xargs git push --delete origin
git branch -r --sort=committerdate | head -40 | sed -e 's|origin/||'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment