文章作者: 微风–轻许–
文章連結: 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