Created
May 22, 2017 11:18
-
-
Save saxix/6f828172f47608e56eb0f6dc7e6dad44 to your computer and use it in GitHub Desktop.
git submodules
This file contains hidden or 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
$ cd path/to/submodule | |
$ git add <stuff> | |
$ git commit -m "comment" | |
$ git push | |
Then tell your main project to track the updated version: | |
$ cd /main/project | |
$ git add path/to/submodule | |
$ git commit -m "updated my submodule" | |
$ git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment