On the opening page it briefly shows the branch config option: git-scm.com/docs/git-submodule#git...
[submodule "<path>"] path = <path> url = <repo> branch = <branch> // <-- magical
We use branches as versions, so each minor change to a submodule increments the branch property. We then run:
git submodule sync git pull --recurse-submodule
...to make sure that everything is updated. You're right in saying that it doesn't seem too well documented though.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
On the opening page it briefly shows the branch config option:
git-scm.com/docs/git-submodule#git...
We use branches as versions, so each minor change to a submodule increments the branch property. We then run:
...to make sure that everything is updated. You're right in saying that it doesn't seem too well documented though.