码迷,mamicode.com
首页 > 其他好文 > 详细

git pull冲突报错

时间:2018-03-09 17:54:31      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:class   pre   body   pop   for   following   回退   git   erro   

修改代码后在git pull报错:

error: Your local changes to the following files would be overwritten by merge:  
    xxx/xxx/xxx.js
Please, commit your changes or stash them before you can merge.  
Aborting  

方法一:压栈

git stash
git pull
git stash pop

方法二:回退到当前版本

git reset --hard
git pull

方法三:放弃修改过的文件

git checkout -- xxx
git pull

 

git pull冲突报错

标签:class   pre   body   pop   for   following   回退   git   erro   

原文地址:https://www.cnblogs.com/xbblogs/p/8534627.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!