Created
March 14, 2012 23:25
-
-
Save acook/2040359 to your computer and use it in GitHub Desktop.
Adding submodules that already have their own repo
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
function git_add_submodule { git submodule add `cd $1; git remote -v | head -1 | cut -f 2 | cut -f 1 --delimiter " "` $1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment