首页 > Windows开发 > 详细

git:error: Your local changes to the following files would be overwritten by merge:

时间:2017-10-13 18:27:28      阅读:328      评论:0      收藏:0      [点我收藏+]

最近用git在服务器、github、本地更新代码的时候,因为频繁修改偶尔出现这个错误

覆盖本地的代码:

git stash
git pull
git stash pop

保留对服务器上的修改:

git stash
git pull
git stash pop

git:error: Your local changes to the following files would be overwritten by merge:

原文:http://www.cnblogs.com/alan2kat/p/7662460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!