I am facing issue that I would like to use more tags for specific commit (last one or in history). For example I would like to have commit which contain tags: "v1.2" and "Release" or "XF-update".
First step is to create and push tags:
I can create tag(s):
git tag v1.2
git tag Release
git tag XF-update
I can push them (each separate for safety):
git push remote v1.2
git push remote Release
...
or all together
git push --tags
note: tag Release or XF-update will be push just once and never more, they will be re-use in branch on many places. so I want to say that I want to tag many commits with the same tag. So after month I will create just new tag "v1.4" and not create XF-update tag anymore but still want to use that tag for commits.
Second step is to make a commit about changes:
Third step should be to make relation between already created tags and commits in history.
And here is the problem. I dont know how to say to git that commit with hash "xxxxxxxxxxxxxxxxxxxxxxxxxxx"should be tagged with tags "v1.2" and also with tag "XF-update" (which are already created and pushed). I can imagine to make it even in separate steps:
Any advice? I am using fork and in GUI I am not able to click it by hand, so I need to use git bash which is integrate there. (its not big deal to write few lines, but dont know what should be steps of this specific way)
Thank you!
Your question is rather confusing, because you keep jumping back and forth between two different things:
git tag new_tag existing_tag
, or pointing at a commit you know the hash for e.g. git tag new_tag abc123def
It sounds like what you are looking for is some kind of label that you can apply to a set of commits, after those commits have been created. There is apparently a facility called git notes which allows you to add free text notes to existing commits. I don't know anything more about it, but it might be usable for your use case. (Hat tip to jthill for pointing out that it exists.)