Skip to content

Instantly share code, notes, and snippets.

@marcelod
Last active July 10, 2025 12:03
Show Gist options
  • Save marcelod/4c676e5bce3ae4e904fba922d2bf0ffc to your computer and use it in GitHub Desktop.
Save marcelod/4c676e5bce3ae4e904fba922d2bf0ffc to your computer and use it in GitHub Desktop.
Remove branchs locais que já foram enviadas para master (main)
@marcelod-meeta
Copy link

git branch --merged main | grep -v "^* main" | xargs -n 1 -r git branch -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment