Git合并,添加所有更新的文件

时间:2016-08-10 19:04:39

标签: git merge

我刚刚合并了两个存储库,我不得不更新50多个文件。要完成合并,我需要添加更新的文件,我收到此错误:

error: merge is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.

我已经解决了代码中的所有冲突,是否有一个命令会添加所有更新的文件,还是我必须逐个文件并手动添加?

1 个答案:

答案 0 :(得分:1)

您必须按此顺序执行此操作:

git add . git commit git merge