我正在使用 git 版本 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'.
如何解决这些错误?