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

 

posted @ 2018-11-02 14:06  做个读书人  阅读(8965)  评论(0编辑  收藏  举报