What to do with commit made in a detached head

前端 未结 8 1302

Using git I made something like this

git clone
git checkout {a rev number tree rev before} (here I started to be in a detached head state)
//hacking
git comm         


        
8条回答
  •  鱼传尺愫
    2020-11-28 17:53

    You can just do git merge or git cherry-pick ...

    As suggested by Ryan Stewart you may also create a branch from the current HEAD:

    git branch brand-name
    

    Or just a tag:

    git tag tag-name
    

提交回复
热议问题