我在用git version 1.7.11.msysgit.0
我在 Github 下创建了一个存储库,并添加了一个名为 README.md 的文件,其中包含一些文本内容。
后来,我安装了 GIT 客户端,克隆了服务器内容到我的机器上。
然后我将文件 README.md 删除到我的本地机器上。
现在当我做 git commit 时,我得到了这个错误
praveenk@MSIN-BT-100 /d/workspace/MYTestRepo (master|MERGING)
$ git commit ;
U README.md
error: 'commit' is not possible because you have unmerged files.
hint: Fix them up in the work tree,
hint: and then use 'git add/rm <file>' as
hint: appropriate to mark resolution and make a commit,
hint: or use 'git commit -a'.
fatal: Exiting because of an unresolved conflict.
这是与git pull
:
$ git pull;
U README.md
A One.txt
Pull 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, or use 'git commit -a'.
如何解决这些错误?