Last active
December 22, 2015 05:49
-
-
Save emil10001/6426486 to your computer and use it in GitHub Desktop.
Create a submodule in a git project
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
# where bar.git is the main project | |
git clone --recursive git://github.com/foo/bar.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 submodule add git@github.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 submodule init | |
git submodule update | |
# Might need to cd into the submodule, | |
# set it to the correct branch and pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment