Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 575 Bytes

add-submodules-in-github-repo.md

File metadata and controls

19 lines (11 loc) · 575 Bytes

Add Submodules in GitHub Repo

What are submodules

Submodules are basically remote git initialised repositories copied/cloned as a reference in your codebase.

Step 1: Get the remote repo url of the repo you want as a submodule in your repo. Let's call that remote-repo-url from now.

Step 2: change directory and go inside the repo in which you want to add the submodule.

Step 3: Add the remote-repo as submodule using the command:

git submodule add <remote-repo-url> <path-name>

Reading Reference