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