Skip to content

Instantly share code, notes, and snippets.

@Satak
Created October 12, 2020 07:43
Show Gist options
  • Save Satak/d319bfb507cac6110d2b311e067d99cb to your computer and use it in GitHub Desktop.
Save Satak/d319bfb507cac6110d2b311e067d99cb to your computer and use it in GitHub Desktop.
Clean local git branches
git fetch --prune;git branch | where {$_ -notmatch 'master'} | %{git branch -D $_.trim()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment