Created
June 11, 2018 07:27
-
-
Save wrossmck/dccfbf67b615642b1fce01731f4b0686 to your computer and use it in GitHub Desktop.
pull latest from master in all subdirectories
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 -Directory -Hidden -Filter .git | ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName -Parent)" pull origin master } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gets all folders with a
.git
folder in it (indicates a git repository), and executesgit pull origin master
for that repository