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