使用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分支和本地master分支,然后将一堆更改推送到origin / master。
所以我的问题是如何将master分支与我的实际状态(分离的头)合并