Skip to content

Instantly share code, notes, and snippets.

@saxix
Created May 22, 2017 11:18
Show Gist options
  • Save saxix/6f828172f47608e56eb0f6dc7e6dad44 to your computer and use it in GitHub Desktop.
Save saxix/6f828172f47608e56eb0f6dc7e6dad44 to your computer and use it in GitHub Desktop.
git submodules
$ 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