[dailyNode] 推荐一个gitignore.io
推荐一个 gitignore.io 的网站,输入node可以生成一个文件:
7 回复
这个是做什么的? 忽略文件的吗?
@think2011 恩,可以选语言,比如node,会自动生成一个.gitignore
@yaochun 噢!暂时没能想到用到哪里。
@think2011 恩,猜测设计的初衷并不是局限node,包含很多语言
这个是一个命令行工具可以生成.gitignore文件,举个例子:
gi linux,osx,webstorm,sublimetext,node > .gitignore
具体用法可以参考网页文档
不错,以前是在 github 新建仓库的时候选一个
# Created by https://www.gitignore.io
### WebStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
/*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the follwing:
# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries
# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml
# Gradle:
# .idea/gradle.xml
# .idea/libraries
# Mongo Explorer plugin:
# .idea/mongoSettings.xml
## File-based project format:
*.ipr
*.iws
## Plugin-specific files:
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# workspace files are user-specific
*.sublime-workspace
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
sftp-config.json
摘了一段,看起来挺有用的。