xxxxxxxxxx
$folder = "C:\Git"
$repos = Get-ChildItem -Path $folder -Filter ".git" -Directory -Depth 1 -Force
Write-Output "Fount $($repos.Count) git repositoris in $folder"
foreach ($repo in $repos) {
Set-Location $repo.Parent
Write-Output "Fetching and merging changes for $($repo.Name) repository"
git fetch --all
git pull
}