Skip to content

Instantly share code, notes, and snippets.

@acook
Created March 14, 2012 23:25
Show Gist options
  • Save acook/2040359 to your computer and use it in GitHub Desktop.
Save acook/2040359 to your computer and use it in GitHub Desktop.
Adding submodules that already have their own repo
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