Created
August 24, 2017 19:32
-
-
Save bingalls/a0506d6c02192e312b2d2c5742f8d4c2 to your computer and use it in GitHub Desktop.
List stale git branches that were already merged into master
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
git branch -r --merged master | sed 's|origin/||' | sort -u |
Author
bingalls
commented
Jan 9, 2020
via email
Nice!
…On Thu, Jan 9, 2020, 12:06 PM Carl Sutherland ***@***.***> wrote:
@bingalls <https://github.com/bingalls> nice — I do have one of these! A
little more dangerous heh: git branch --merged master | grep -v "\*
master" | xargs -n 1 git branch -d
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/a0506d6c02192e312b2d2c5742f8d4c2?email_source=notifications&email_token=AAFZ2Y5SVICUTLPRWVCFPXDQ45KRPA5CNFSM4KE3TP6KYY3PNVWWK3TUL52HS4DFVNDWS43UINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAF7GMO#gistcomment-3132615>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFZ2Y2W2HBMPPCILI5RKG3Q45KRPANCNFSM4KE3TP6A>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment