-
Notifications
You must be signed in to change notification settings - Fork 32
Working with Git
J.L Stevens edited this page Jul 21, 2014
·
5 revisions
To make sure your submodules are up to date run:
git submodule update
- Make your changes to the submodule.
- Commit your changes to the submodule.
- Push your changes to the remote submodule repository.
- The superproject will register the change to the submodule, which you will then need to commit.
In some environments the https protocol may not be available. In order to use submodules without changing the .gitmodules file you can do one of the following:
-
Run
git config --global url."[email protected]:".insteadOf https://github.com/
-
Modify your .gitconfig (in your home folder) to contain the following lines:
[url "[email protected]"] insteadOf = https://github.com/
In order to use SSH with GitHub you will also have to set up SSH Keys as detailed in these instructions.