Last active
May 25, 2023 13:48
-
-
Save martinobordin/c024f990773b1bca047fc8a9e6cbf378 to your computer and use it in GitHub Desktop.
Git checkout\update develop & delete branches no more present in remote
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
git checkout develop; git remote update origin --prune;git pull; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -D $_} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment