Skip to content

Instantly share code, notes, and snippets.

@codepotato
Created November 22, 2019 10:04
Show Gist options
  • Save codepotato/8f2aecdcf74b5c19cc28afc610b9140f to your computer and use it in GitHub Desktop.
Save codepotato/8f2aecdcf74b5c19cc28afc610b9140f to your computer and use it in GitHub Desktop.
Remove all git repos that have already been merged with origin
git branch -r --merged | grep -v master | sed 's/origin\///' | xargs -n 1 git push --delete origin
@Sammyjo20
Copy link

😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment