当前位置: 代码迷 >> 综合 >> 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:

热度:52   发布时间:2024-02-23 13:02:08.0

首先3步

git stash  
git pull origin master  
git stash pop

接着

#查看状态
git  status

如果有冲突的文件会显示出来,提示:需要git add [files]

进入 【files】文件路径修改对应冲突后,git add [path]/files

  相关解决方案