Created
March 3, 2022 16:39
-
-
Save cwparsons/94d1fab578dd741b50b0f4827f0ad537 to your computer and use it in GitHub Desktop.
Runs `git pull --rebase origin master` on each subfolder that contains a .git folder using PowerShell.
This file contains hidden or 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
# Runs `git pull --rebase origin master` on each subfolder that contains a .git folder. | |
Get-ChildItem -Directory -Hidden -Depth 3 -Filter .git | ForEach-Object { & git --git-dir="$($_.FullName)" --work-tree="$(Split-Path $_.FullName)" pull --rebase origin master } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment