gitignore README

The project's README from github.com/github/gitignore. As one markdown file: README.md.

A collection of .gitignore templates

This is GitHub’s collection of .gitignore file templates. We use this list to populate the .gitignore template choosers available in the GitHub.com interface when creating new repositories and files.

For more information about how .gitignore files work, and how to use them, the following resources are a great place to start:

Folder structure

We support a collection of templates, organized in this way:

What makes a good template?

First and foremost, a template contribution must adhere to our Contributing Guidelines.

A template should contain a set of rules to help Git repositories work with a specific programming language, framework, tool or environment.

If it's not possible to curate a small set of useful rules for this situation, then the template is not a good fit for this collection.

If a template is mostly a list of files installed by a particular version of some software (e.g. a PHP framework), it could live under the community directory. See versioned templates for more details.

If you have a small set of rules, or want to support a technology that is not widely in use, and still believe this will be helpful to others, please read the section about specialized templates for more details.

Include details when opening a pull request if the template is important and visible. We may not accept it immediately, but we can promote it to the root at a later date based on interest.

Please also understand that we can’t list every tool that ever existed. Our aim is to curate a collection of the most common and helpful templates, not to make sure we cover every project possible. If we choose not to include your language, tool, or project, it’s not because it’s not awesome.

Contributing guidelines

Please see our Contributing Guidelines.

Versioned templates

Some templates can change greatly between versions, and if you wish to contribute to this repository we need to follow this specific flow:

This helps ensure users get the latest version (because they'll use whatever is at the root) but helps maintainers support older versions still in the wild.

Specialized templates

If you have a template that you would like to contribute, but it isn't quite mainstream, please consider adding this to the community directory under a folder that best suits where it belongs.

The rules in your specialized template should be specific to the framework or tool, and any additional templates should be mentioned in a comment in the header of the template.

For example, this template might live at community/DotNet/InforCRM.gitignore:

# gitignore template for InforCRM (formerly SalesLogix)
# website: https://www.infor.com/products/customer-experience-suite/crm
#
# Recommended: VisualStudio.gitignore

# Ignore model files that are auto-generated
ModelIndex.xml
ExportedFiles.xml

# Ignore deployment files
[Mm]odel/[Dd]eployment

# Force include portal SupportFiles
!Model/Portal/*/SupportFiles/[Bb]in/
!Model/Portal/PortalTemplates/*/SupportFiles/[Bb]in

Contributing workflow

Here’s how we suggest you go about proposing a change to this project:

  1. Fork this project to your account.
  2. Create a branch for the change you intend to make.
  3. Make your changes to your fork.
  4. Send a pull request from your fork’s branch to our main branch.

Using the web-based interface to make changes is fine too, and will help you by automatically forking the project and prompting to send a pull request too.

License

CC0-1.0.

gitignore (github/gitignore)

Searching Database…

这是做什么的?GitHub 官方的 .gitignore 模板合集:为流行的编程语言、工具和操作系统提供现成的忽略规则,也是 GitHub.com 上 .gitignore 选择器背后的数据来源。
它是一个大的忽略文件,还是一组单独的模板?是一组单独的模板文件,分成三个目录:root 存放流行语言和技术,Global 存放编辑器、工具和操作系统,community 存放比较小众的。
我具体怎么使用这些模板?把与你所用技术栈匹配的模板复制到你的仓库里,保存为名为 .gitignore 的文件。对于 Global 模板,README 建议放入你的全局 gitignore,或者合并进针对具体项目的忽略文件。
我用的每种语言或工具都能找到模板吗?不一定。维护者有意只收录最常见、最有用的模板,所以某个工具没有收录是有意为之,并不是因为它不好。
我能在自己的项目里复用这些模板吗?可以。整个合集采用 CC0-1.0 许可,模板可以自由复制和修改。
模板要达到什么标准才会被收录?一小组有意义、能帮助 Git 仓库配合某种特定语言、框架、工具或环境使用的忽略规则。如果整理不出这样的一小组规则,就不适合收录进这个合集。
为什么有些模板的文件名里带版本号?不同版本之间差异很大的模板采用带版本的管理方式:root 目录下是没有版本号后缀的当前受支持版本,旧版本则放在 community/ 目录下,版本号写进文件名里。
Creator
github
Size
3.1 MB
Stars
176K
Updated
CommitOct 02
Age
15y
Commits · 90 Days