Skip to content

Instantly share code, notes, and snippets.

@tonym128
Last active October 28, 2020 07:36
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 tonym128/e071994f4744791644f06d0e86ccc3e5 to your computer and use it in GitHub Desktop.
Save tonym128/e071994f4744791644f06d0e86ccc3e5 to your computer and use it in GitHub Desktop.
Git Powershell Get all folders
Get-ChildItem -Recurse -Depth 2 -Force |
Where-Object { $_.Mode -match "h" -and $_.FullName -like "*\.git" } |
ForEach-Object -Parallel {
cd $_.FullName
cd ../
git pull
cd ../
}
Thanks to https://michael-mckenna.com/update-multiple-git-repositories-on-windows-at-once-using-powershell/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment