We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Deleting branches already merged to main
almirsarajcic
0 comments
Copy link
If you’ve been working on an app for a while, you probably have many stale local branches. To remove them, run this command
git branch --merged main \
| grep -v 'main$' \
| xargs git branch -d
copied to clipboard
Comments (0)
Sign in with GitHub to join the discussion