Checking out Git tag leads to “detached HEAD state”

前端 未结 2 1664
孤独总比滥情好
孤独总比滥情好 2020-12-04 04:58

I\'m developing a deployment script for my git project and I just started using tags. I\'ve added a new tag called v2.0:

git tag -a v2.0 -m \"La         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 05:11

    Yes, it is normal. This is because you checkout a single commit, that doesnt have a head. Especially it is (sooner or later) not a head of any branch.

    But there is usually no problem with that state. You may create a new branch from the tag, if this makes you feel safer :)

提交回复
热议问题