Skip to content

Instantly share code, notes, and snippets.

@ashrithr
Created October 16, 2013 22:16
Show Gist options
  • Save ashrithr/7015894 to your computer and use it in GitHub Desktop.
Save ashrithr/7015894 to your computer and use it in GitHub Desktop.
git submodule commands

To initialize a submodule inside git repo

git submodule add [GitURL] [AliasName]

To recursivly update the submodules inside of a git repo

git submodule foreach git pull origin master

To clone git repo containing submodules

git clone --recursive [GitURL]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment