Skip to content

Instantly share code, notes, and snippets.

@abombss
Created November 20, 2011 21:06
Show Gist options
  • Save abombss/1380912 to your computer and use it in GitHub Desktop.
Save abombss/1380912 to your computer and use it in GitHub Desktop.
Powershell to re-clone all git submodules
$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