git pull 本地冲突

用git pull来更新代码的时候,遇到了下面的问题:
error: Your local changes to the following files would be overwritten by merge: xxx/xxx/xxx.php Please, commit your changes or stash them before you can merge. Aborting…

解决办法:
git stash //暂存当前正在进行的工作
git pull
git stash pop //合并暂存的代码

    原文作者:ZekiHoo
    原文地址: https://segmentfault.com/a/1190000018911093
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞