Skip to content

Instantly share code, notes, and snippets.

@taimursaeed
Last active December 16, 2020 16:35
Show Gist options
  • Save taimursaeed/85c5a503025b3e8cacf51426b8d9c93a to your computer and use it in GitHub Desktop.
Save taimursaeed/85c5a503025b3e8cacf51426b8d9c93a to your computer and use it in GitHub Desktop.
Everything related to Git
// Delete local branches that are no longer present on remote
git branch --v | ? { $_ -match "\[gone\]" } | % { -split $_ | select -First 1 } | % { git branch -D $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment