Last active
October 28, 2020 07:36
-
-
Save tonym128/e071994f4744791644f06d0e86ccc3e5 to your computer and use it in GitHub Desktop.
Git Powershell Get all folders
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
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