Last active
November 8, 2016 14:49
-
-
Save mochadwi/4c8adce413627718b79b73231ec07e08 to your computer and use it in GitHub Desktop.
Git-Submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .git/config, exists in your main repo | |
[submodule "your/path/to/sub/repo"] | |
url = git@domain.com:user/repo.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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