Skip to content

Instantly share code, notes, and snippets.

@MJKSabit
Created October 15, 2021 17:02
Show Gist options
  • Save MJKSabit/6bac3f281d6d4fb7fbd0fb2349d0828b to your computer and use it in GitHub Desktop.
Save MJKSabit/6bac3f281d6d4fb7fbd0fb2349d0828b to your computer and use it in GitHub Desktop.
How to add multiple repositories in a single repository in GitHub

Git Submodule for Multiple Git

  1. Add Git Module to Project
git submodule add <remote-link>
  1. For updating with the latest version of submodule
git submodule update --remote
  1. Commit and Push to Remote

  2. To clone git clone --recurse-submodules <remote-link-with-submodules>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment