其他分享
首页 > 其他分享> > git pull 的时候出现冲突 ,error: Your local changes to the following files would be overwritten by merge

git pull 的时候出现冲突 ,error: Your local changes to the following files would be overwritten by merge

作者:互联网

有以下两种解决方案

1 保留修改

git stash #封存修改
git pull origin master 
git stash pop #把修改还原 

2.废弃修改

git reset --hard 
git pull origin master

  

 

标签:files,pull,git,stash,修改,master,changes,origin
来源: https://www.cnblogs.com/0bug/p/16139731.html