git branch | grep -v "main" | xargs git branch -D
Last active
October 23, 2021 08:46
-
-
Save tanshuai/c94774a611b309ce4b20573ac13161f6 to your computer and use it in GitHub Desktop.
Delete all the local branches but keep main
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment