Created
April 25, 2012 11:47
-
-
Save vermorel/2489148 to your computer and use it in GitHub Desktop.
Iterate through subdirectories in PowerShell and perform 'git fetch' and 'git rebase' each time
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
<# | |
Iterate through all subdirectories, and perform Git fetch, then Git rebase | |
on each subdirectory. | |
Joannes Vermorel, 2012-04-25 | |
#> | |
$initpath = get-location | |
foreach($path in get-childitem) { | |
if ($path.Attributes -eq "Directory") { | |
set-location $path.FullName | |
git fetch | |
git rebase | |
} | |
} | |
set-location $initpath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment