How to tag a certain changeset in Git?
I am trying to find out how to tag a changeset that occurred earlier in the history. I am doing this as a feature part of a program, so, I can't do checkout and then tag, because the working copy may not be clean, and I dare not to modify the stas开发者_运维问答h either because it may already contain something.
See the man:
git tag <tagname> <commit>
Just use:
git tag tag_name commit_hash
More on tags: Git tags in the Git Community Book.
精彩评论