【发布时间】:2014-11-05 04:21:24
【问题描述】:
我对 git 还是很陌生,并试图弄清楚一切是如何工作的。所以这是我的情况:我一直在笔记本电脑上处理一个 java 项目。推送到 git 存储库并将其拉到另一台机器上。进行了一些更改并推送到存储库。现在我想将我当前的工作拉到我的笔记本电脑上,但它说我不能,因为我有未合并的文件。
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
请帮助纠正这个问题。谢谢。
$ git status
on branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
You have unmerged paths.
(fix conflicts and run "git commit")
【问题讨论】:
-
您使用的是命令行还是 GUI 工具?如果是命令行,请贴出
git status的输出。 -
所以您不关心您在尝试合并时所做的任何本地更改?你乐意用遥控器覆盖你本地的东西吗?
-
@Simon 是的。我只想用远程分支上的所有内容更新(覆盖)所有内容。
-
你是否故意在 git status 的输出中遗漏了有冲突的文件列表?还是没有列出?
标签: git