Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用“git add”将文件添加到 git 暂存区。它一直显示多个警告。为什么会这样?
命令提示符显示的警告
此错误的原因是名为 node_modules 的文件夹。
node_modules 包含许多文件来解决您必须添加一个名为 .gitignore 的文件。
避免 node_modules 的步骤
创建文件.gitignore
.gitignore
写/node_modules
/node_modules
如果你想要 node_modules
我猜这将是无穷无尽的,我完成了一个我忽略 node_modules 的项目,它工作正常