Last active
September 6, 2021 11:25
-
-
Save gforien/e24cd79f7639892022677ac35b529d28 to your computer and use it in GitHub Desktop.
Git pull all remote branches (powershell)
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 branch -r | ?{$_ -notlike '*->*'} | %{$_ -replace "\s", ""} | %{ git branch --track ($_ -replace "origin/", "") $_} | |
git fetch --all | |
git pull --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment