git did not exit cleanly (exit code 1)


git pull的时候报如下错误:

error: Your local changes to the following files would be overwritten by merge:

文件1

文件2

文件3

解决办法:

用远程仓库中的内容替换本地仓库中的内容。

1、使用tortoisegit工具:revert 这些冲突文件。然后再pull  -->push&commit

2、使用git命令:

git reset --hard
git pull

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM