Created
October 5, 2024 14:21
-
-
Save kingingcole/28d7b39e538f36e6630e425bc7af8cac to your computer and use it in GitHub Desktop.
Terminal command to delete all merged local branches
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 --merged | grep -v "^\*\\|main" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment