Last active
December 16, 2020 16:35
-
-
Save taimursaeed/85c5a503025b3e8cacf51426b8d9c93a to your computer and use it in GitHub Desktop.
Everything related to Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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