我使用的是git/github,偶然我一直致力于“主”分支而不是“4.2”。我现在已经创建了一个独立的分支,这就是“主”应该是“4.1”,并且挑选了基本的提交。我一直在犯错误的Git分支。如何清理?
我现在想复制“4.1”到主,以避免我在Nov1,2,3中所做的提交和7.什么是做到这一点的最好方法是什么?
我一直奉行:Create git branch, and revert original to upstream state,但得到这个:
$ git push origin :master
remote: error: refusing to delete the current branch: refs/heads/master
To [email protected]:atk4/atk4.git
它在Github上:https://github.com/atk4/atk4/network,并有相关的问题:http://stackoverflow.com/questions/4759492/how-to-recreate-the-github-network-图 – romaninsh