How to git tag all submodules?

Viewed 9648

I would like to tag all of the submodules of my project. I tried to do that with:

git submodule foreach git tag tagName

... but it appears to just return with no errors, having done nothing.

Edit: Here are the results of my attempt:

enter image description here

Can someone tell me how to properly tag all submodules?

Note: this a very similar question to this post, but the answer for that one suggested to rely on the submodule refs in the super-project. I, however, would actually like a tag in the submodule's repo.

1 Answers
Related