Git commit against tag with no branch

后端 未结 4 934
野性不改
野性不改 2021-01-30 04:00

If I check out a tagged version of my source code without creating a branch, Git indicates that I\'m not associated with any branch at all. It\'s happy to let me make changes an

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 04:42

    Alternatively, you can merge the commit back into master without a new branch by finding its SHA1 (using git reflog as above) and then:

    git checkout master
    git merge SHA1
    

提交回复
热议问题