Skip to content

Instantly share code, notes, and snippets.

@kiewic
Created July 8, 2016 06:02
Show Gist options
  • Save kiewic/4c28690290ffd4c0b1affcc808196150 to your computer and use it in GitHub Desktop.
Save kiewic/4c28690290ffd4c0b1affcc808196150 to your computer and use it in GitHub Desktop.
Perform git pull in all subdirectories that contain a git repository using PowerShell.
Get-ChildItem -Directory -Force -Recurse *.git | ForEach-Object { cd $_.Parent.FullName; Write-Host $_.Parent.FullName; git pull }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment