Skip to content

Instantly share code, notes, and snippets.

@thpoiani
Created July 17, 2016 16:46
Show Gist options
  • Save thpoiani/d4cc43489e73cd167ea0423860b257ab to your computer and use it in GitHub Desktop.
Save thpoiani/d4cc43489e73cd167ea0423860b257ab to your computer and use it in GitHub Desktop.
Git Submodules
# git submodule add MODULE module
# git config --global diff.submodule log
git clone SUBMODULE
git submodule init
git submodule update
# or
git clone --recursive MODULE
git submodule update --remote
git config -f .gitmodules submodule.MODULE.branch develop
git submodule update --remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment