Add submodule Git

Posted by Carles Loriente on December 29, 2019 · 1 min read

Using Git submodules you can attach other Git repositories to your current Git repostory at a specific path. This allows you to commit, pull, and push there repositories independently. You can add as many Git submodules as you need.


git submodule add git@bitbucket.org:user/repo a/submodule
git submodule update --init --recursive

Download the GitHub Gist add-git-submodule.sh

Found a snippet that saved your day? Consider dropping a tip!