Something like a "tag" for multiple commits

My dilemma: I always want to note the last verified commit so that I can always specify diff. I allow checking my code only after a certain time. How can I recall the last time I looked at my code?

My idea was to always mark: “looked through” the last verified commit. However, I would rather be able to mark commits with this as-i-th. Without the need to always remove the tag. + I would like to remember what differences I had for consideration.

So, it would be better if I could tag multiple commits with the same tag. Unfortunately, a tag is something like an “ID” in the DOM. I would prefer something like a class in the DOM. Is there something like that?

+4
source share
2 answers

You can create a tag based on the current date / time:

$ git tag review-$(date +"%Y-%m-%d_%H-%M-%S")

This generates a tag like this:

$ git tag -l
review-2015-04-30_17-20-03

You can also define this as a git alias:

$ git config alias.tag-review '!git tag review-$(date +"%Y-%m-%d_%H-%M-%S")'

Now use

$ git tag-review
+5
source

You might want to check git notes.

+7
source

All Articles