Last active
August 2, 2021 11:31
-
-
Save jost125/7006654 to your computer and use it in GitHub Desktop.
Checkouts to master and delete all fully merged branches
This file contains hidden or 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/bash | |
git checkout master | |
for b in $(git branch | grep -v master); do git branch -d $b; done | |
git fetch -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment