Created
April 22, 2024 15:15
-
-
Save smohammadhn/256786b34756f691717c1bf0d5fbbd27 to your computer and use it in GitHub Desktop.
Git delete all merged branches locally (except main and develop)
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
git branch --merged | egrep -v "(^\*|main|develop)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment