Skip to content

Instantly share code, notes, and snippets.

@MikaelPorttila
Last active August 12, 2020 20:03
Show Gist options
  • Save MikaelPorttila/21ca1b5bd821b229ee6e2f324a79262f to your computer and use it in GitHub Desktop.
Save MikaelPorttila/21ca1b5bd821b229ee6e2f324a79262f to your computer and use it in GitHub Desktop.
Refresh all git repositories (require pwsh 7.0)
Get-ChildItem | ForEach-Object -Parallel { git -C $_ fetch; git -C $_ pull; } -ThrottleLimit 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment