Skip to content

Instantly share code, notes, and snippets.

@nh43de
Created March 5, 2020 15:42
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 nh43de/f68bbb147413c9280c1ed82b84c9a0ed to your computer and use it in GitHub Desktop.
Save nh43de/f68bbb147413c9280c1ed82b84c9a0ed to your computer and use it in GitHub Desktop.
Update all local git repos in a directory using Powershell
Get-ChildItem -Directory | ForEach-Object {
echo $_.name
cd $_
git fetch --all
git pull
cd ../
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment