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
唯有热爱方能抵御岁月漫长。
原文地址:https://www.cnblogs.com/syq816/p/9895926.html