git pull 报错
作者:互联网
文章作者: 微风–轻许–
文章連結: https://blog.csdn.net/misakaqunianxiatian/article/details/51103734
版權聲明: 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
idea 上将本地代码推送到 git后 , 报错如下图
error: Your local changes to the following files would be overwritten by merge:
src/main/resources/application-prod.properties
Please, commit your changes or stash them before you can merge.
解决方法 :保留本地最新修改,并拉取仓库中忘记 pull 的代码到本地
三个命令
git stash
git pull origin master
git stash pop
标签:pull,git,stash,merge,报错,changes 来源: https://blog.csdn.net/sunxiaobai1/article/details/122862723