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.
source
share