Skip to content

Instantly share code, notes, and snippets.

@mochadwi
Last active November 8, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mochadwi/4c8adce413627718b79b73231ec07e08 to your computer and use it in GitHub Desktop.
Save mochadwi/4c8adce413627718b79b73231ec07e08 to your computer and use it in GitHub Desktop.
Git-Submodule
# .git/config, exists in your main repo
[submodule "your/path/to/sub/repo"]
url = git@domain.com:user/repo.git
# .gitmodules, exists in your main repo
[submodule "your/path/to/sub/repo"]
path = your/path/to/sub/repo
url = git@domain.com:user/repo.git
# .git/config, exists in your main repo
[submodule "your/path/to/sub/repo"]
url = git@domain.com:user/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment