git pull 报错 error: The following untracked working tree files would be overwritten by merge 解决

git pull origin master 时提示错误

$ git pull origin master
error: The following untracked working tree files would be overwritten by merge:
         qd/node_modules/@floating-ui/core/LICENSE
        qd/node_modules/@floating-ui/core/README.md

please move or remove them before you merge.

 解决方法:

git clean -d -fx "qd/node_modules/@floating-ui/core/LICENSE"

命令:
x-----删除忽略文件已经对git来说不识别的文件
d -----删除未被添加到git的路径中的文件
f -----强制运行

你可能感兴趣的:(git)