Created
December 15, 2015 11:02
-
-
Save jsarenik/d90006390758d15180bc to your computer and use it in GitHub Desktop.
Script that deletes all git branches that were already merged to current one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git branch --merged | grep -v "^\*\|master" | xargs -r -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment