Skip to content

Instantly share code, notes, and snippets.

@rodrigodiasnoronha
Created June 26, 2023 14:47
Show Gist options
  • Select an option

  • Save rodrigodiasnoronha/bcc16dab9885841af7b287a15bc156e7 to your computer and use it in GitHub Desktop.

Select an option

Save rodrigodiasnoronha/bcc16dab9885841af7b287a15bc156e7 to your computer and use it in GitHub Desktop.
Bash/Powershell apagar todas as branches local, com excessão da master
git branch |`
%{ $_.Trim() } |`
?{ $_ -ne 'master' } |`
%{ git branch -D $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment