美文网首页Git版本管理工具
Git pull代码时出现冲突

Git pull代码时出现冲突

作者: 西瓜鱼仔 | 来源:发表于2019-11-20 19:54 被阅读0次

    出现错误

    error: Your local changes to the following files would be overwritten by merge:
    protected/config/main.php
    Please, commit your changes or stash them before you can merge.

    出现原因和解决办法

    pull 的前提是要保证本地 clean 才行,因此可以先commit 或者stash,然后再执行 pull

    相关文章

      网友评论

        本文标题:Git pull代码时出现冲突

        本文链接:https://www.haomeiwen.com/subject/quraictx.html