What to do with commit made in a detached head

前端 未结 8 1310

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:14

    Maybe not the best solution, (will rewrite history) but you could also do git reset --hard .

提交回复
热议问题