git pull報錯: The following untracked working tree files would be overwritten by merge:


1. 問題描述:
  在git中利用pull拉取遠程倉庫文件時報錯:

error: The following untracked working tree files would be overwritten by merge:

 

 

 

 

2. 分析原因:
  untracked working tree files

 

3. 解決方式:
  百度大多數解決方式是刪除 一些 沒有 git add 的 文件,但是測試后卻並未解決問題。

$ git clean -d -fx

$ git pull origin master

 

最終解決方式:

$ git fetch origin

$ git clean -f

$ git reset --hard origin/master

解決不了沖突我把頭給你·~

// 轉載

https://blog.csdn.net/qq_39564555/article/details/100168695

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM