如何在将node_modules文件夹放入.gitignore文件后,从Atom搜索"在项目中查找"中排除它?Atom是否要求项目实际上具有git存储库,或者.gitignore对于Atom来说是否足够排除该文件夹?
我的.gitignore如下所示:
我的.gitignore如下所示:
.DS_STORE
*.log
node_modules
dist
coverage
.DS_STORE
*.log
node_modules
dist
coverage
步骤
现在应该会打开一个新的Atom IDE。
core
下添加ignoredNames: ["node_modules"]
config.cson
的示例:
"*":
core:
ignoredNames: [
".git"
"node_modules"
]
editor: {}
minimap:
plugins:
"highlight-selected": true
"highlight-selectedDecorationsZIndex": 0
welcome:
showOnStartup: false
希望这能有所帮助。
.gitignore
文件位于你的代码库根目录下,而不是在 /web/.gitignore
等子目录中。我花了一些时间才意识到它只查看 /.gitignore/
。 - Matt Dell文件>配置...
访问了config.cson。core
部分下必须添加ignoredNames:["node_modules"]
。"*":
core:
telemetryConsent: "no"
themes: [
"one-light-ui"
"one-light-syntax"
]
ignoredNames: ["node_modules"]
node_modules
将不会在树状视图中显示。 - Marian07node_modules
将留在这个解决方案中。毫无疑问,这应该是被接受的答案。 - sager