Created
November 20, 2011 21:06
-
-
Save abombss/1380912 to your computer and use it in GitHub Desktop.
Powershell to re-clone all git submodules
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
$hash = @{}; $list = cat .gitmodules | where { $_ -like "*=*" } | foreach { $_.Split("=")[1].Trim() }; while ($list) { $key, $value, $list = $list; $hash[$key]=$value }; $hash.GetEnumerator() | foreach { & git submodule add $_.Value $_.Name } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment