别人提交代码后,我没有获取代码,我把我改的代码直接提交了,我们修改了同一处的代码。
Hint: You have divergent branches and need to specify how to reconcile them. Hint: You can do so by running one of the following commands sometime before Hint: your next pull: Hint: Hint: git config pull.rebase false # merge Hint: git config pull.rebase true # rebase Hint: git config pull.ff only # fast-forward only Hint: Hint: You can replace "git config" with "git config --global" to set a default Hint: preference for all repositories. You can also pass --rebase, --no-rebase, Hint: or --ff-only on the command line to override the configured default per Hint: invocation. Git failed with a fatal error. Git failed with a fatal error. Need to specify how to reconcile divergent branches.
中文翻译
提示:您有不同的分支,需要指定如何协调它们。 提示:您可以在之前的某个时间运行以下命令之一来完成此操作 提示:你的下一次拉动: 提示: 提示:git config pull。重设假基址#合并 提示:git config pull。重设基址为真#重设基址 提示:git config pull。仅限ff#仅限快进 提示: 提示:可以将“git config”替换为“git config--global”来设置默认值 提示:所有存储库的首选项。你也可以通过--再基地,-不再基地, 提示:或--ff仅在命令行上覆盖配置的默认值 提示:调用。 Git失败,出现致命错误。 Git失败,出现致命错误。 需要指定如何协调不同的分支。
解决办法
git config pull.rebase false