How can I mark the current git branch as ok, then continue

I am in the middle of working on a branch.

I got to "work so far."

I want to clearly indicate my current state with a label, for example. "Ok_so_far".

So, when I continue and if (... normal, when), I am a mess, I can easily return to this point.

I know that I can reference SHA, but I was wondering how I can put the label at the current point (sort of like the release label that I assume), so it’s really clear what you need to return to and hopefully refer to the readable human label, not SHA.

+4
source share
2 answers

You are looking for tag :

git tag ok_so_far 

You can then use the name ok_so_far instead of the commit identifier SHA1.

+11
source

Another possible solution is note .

+1
source

All Articles