Skip to content

Instantly share code, notes, and snippets.

@pkbullock
Created August 6, 2018 16:04
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 pkbullock/2b295ef442f8d0100880af331a04f168 to your computer and use it in GitHub Desktop.
Save pkbullock/2b295ef442f8d0100880af331a04f168 to your computer and use it in GitHub Desktop.
Update Git Repos - Bulk Git Pull
$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