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 //合并暂存的代码
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论