Git: How to create a tag that also includes submodules?

I have a project with many submodules, I just released a release, and I want to mention all of this.

I want to create a point at which I can check in the future, and it will include the current code of my project along with all the current code of all submodules.

+1
source share
1 answer

When you mark a commit, you mark the version of your submodules that are used by this commit.

When you use a submodule, your commit includes SHA commit in the submodule that your code is currently using. When you update the code in your submodule, you will see that you have changes to commit (new SHA) in the superproject. That way, the tag will naturally work the way you want.

+2
source

Source: https://habr.com/ru/post/1678377/


All Articles