carlessanagustin
2/8/2018 - 9:45 AM

Git submodules commands

  • Add submodule
git submodule add <git@...> <destination_folder>
  • Clone repo + submodules: option 1
git clone --recurse-submodules -j8 git://github.com/foo/bar.git
cd bar
  • Clone repo + submodules: option 2
git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive