Skip to content

Instantly share code, notes, and snippets.

@miwgel
Last active June 7, 2023 18:37
Show Gist options
  • Save miwgel/542a11c7b25e0b735aa14b6057c4c6fe to your computer and use it in GitHub Desktop.
Save miwgel/542a11c7b25e0b735aa14b6057c4c6fe to your computer and use it in GitHub Desktop.
Best way to create a git submodule

Create git submodule

Run in terminal

  • git submodule add -b <branch> <source-github-repository-url> <destination-path-within-project>
  • In case the submodule has submodules within: git submodule update --recursive --init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment