最佳答案
使用git我做了这样的东西
git clone
git checkout {a rev number tree rev before} (here I started to be in a detached head state)
//hacking
git commit
//hacking
git commit
(some commit where made on origin/master)
git pull (which does complete because there was some error due to the fact that I'm no more on master)
因为它告诉我,当我处于分离的头脑状态时,我仍然可以提交,我这样做了。
但是现在我想合并我分离的头分支和我的本地主分支,然后把我的一堆更改推到origin/master.
所以我的问题是我如何将主分支与我的实际状态(分离头)合并