【发布时间】:2011-09-14 04:59:41
【问题描述】:
我正在使用 Git 1.7.4.1。
我想从存储库中获取最新版本的代码,但出现错误:
$ git pull
….
M selenium/ant/build.properties
….
M selenium/scripts/linux/get_latest_updates.sh
M selenium/scripts/windows/start-selenium.bat
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'.
我已删除该工具所抱怨的文件的本地副本,但我仍然收到错误消息。
如何从远程存储库中检出最新版本?
【问题讨论】:
-
@Kzqai 下面的回答帮助了我:先尝试做
git fetch。我没有遇到冲突,但这是我获得最新版本代码的方式。
标签: git