Skip to content

Instantly share code, notes, and snippets.

@gforien
Last active September 6, 2021 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gforien/e24cd79f7639892022677ac35b529d28 to your computer and use it in GitHub Desktop.
Save gforien/e24cd79f7639892022677ac35b529d28 to your computer and use it in GitHub Desktop.
Git pull all remote branches (powershell)
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