Git - 无处不在node_modules文件夹 [英] Git - Ignore node_modules folder everywhere
本文介绍了Git - 无处不在node_modules文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含多个其他项目的项目:
全部包含 node_modules
文件夹。我希望git忽略该文件夹,无论它从根文件夹开始。
* node_modules / *
pre
解决方案添加此
node_modules /
到
.gitignore
文件忽略当前文件夹和所有子文件夹中所有名为node_modules
的目录I have a project containing multiple other projects :
- Main project
- Mini project 1
- Mini project 2
All containing node_modules
folder. I want git to ignore the folder no matter where it is starting from the root folder. Something like this to add in .gitignore :
*node_modules/*
解决方案
Add this
node_modules/
to .gitignore
file to ignore all directories called node_modules
in current folder and any subfolders
这篇关于Git - 无处不在node_modules文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文