0
我下载了一个混帐回购协议作了一些修改(删除一些文件),然后COMMITED它。然后我做了git checkout -b“新分支”。这里我没有删除这些文件,但是我做了一些修改并提交了它。现在我回到我的主分支,并做new_branch_i_created一个git合并而是说:
fatal: 'merge' is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>' as
appropriate to mark resolution and make a commit, or use 'git commit -a'.
我在做什么错?
如果我尝试从我的主分支签新的分支,它说:
GDCatalog/.classpath: needs merge
GDCatalog/src/com/cyrilmottier/android/gdcatalog/CatalogActivity.java: needs merge
GDCatalog/src/com/cyrilmottier/android/gdcatalog/PagedViewActivity.java: needs merge
GreenDroid-GoogleAPIs/.classpath: needs merge
GreenDroid/.classpath: needs merge
GreenDroid/src/greendroid/widget/PagedView.java: needs merge
error: you need to resolve your current index first
如何解决这些错误?我运行什么命令来合并第二个布尔与主分支 – user1667307
问题:在尝试执行'git merge'之前,最后一个命令是什么?问题未提交的更改会阻止合并或合并期间的合并冲突(例如,存在'.git/MERGE_HEAD')? –