使用 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)
因为它告诉我,即使在分离的 HEAD 状态下,我仍然可以提交,所以我这样做了。但现在我想合并我的分离 HEAD 分支和本地主分支,然后将我的一堆更改推送到 origin/master。
所以我的问题是如何将主分支与我的当前状态(分离的 HEAD)合并。