Created
August 6, 2018 16:04
-
-
Save pkbullock/2b295ef442f8d0100880af331a04f168 to your computer and use it in GitHub Desktop.
Update Git Repos - Bulk Git Pull
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
$startingPoint = Get-Location | |
# Set the Repos here | |
$dirList = dir -Directory | |
$dirList | Foreach-Object { | |
Write-Host 'Updating... ' $_ | |
# Go to sub folder | |
Set-Location $_ | |
# Update | |
git pull | |
#Finish | |
Set-Location $startingPoint | |
} | |
# Return to starting point | |
cd $startingPoint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment