What to do with commit made in a detached head

前端 未结 8 1288

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 18:10

    Alternatively, you could cherry-pick the commit-id onto your branch.

    made in detached head state

    git checkout master

    git cherry-pick

    No temporary branches, no merging.

提交回复
热议问题