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…

What is this?GitHub's official collection of .gitignore templates: ready-made ignore rules for popular languages, tools and operating systems, and the list behind the .gitignore choosers on GitHub.com.
Is it one big ignore file or a set of separate templates?Separate template files organized in three folders: root for popular languages and technologies, Global for editors, tools and operating systems, community for specialized ones.
How do I actually use one of these templates?Copy the template matching your stack into your repo as a file named .gitignore. For Global templates the README recommends your global gitignore or merging them into project-specific ones.
Will I find a template for every language or tool I use?Not necessarily. The maintainers deliberately curate only the most common and helpful templates, so a missing tool was left out on purpose, not because it is not awesome.
Can I reuse these templates in my own projects?Yes. The whole collection is licensed under CC0-1.0, so the templates can be freely copied and adapted.
What makes a template good enough to be included?A small, meaningful set of ignore rules that help Git repositories work with one specific language, framework, tool or environment. If no such small set can be curated, it is not a fit for this collection.
Why do some templates have a version number in the filename?Templates that change greatly between versions follow a versioned flow: the root holds the current supported version with no version in the name, while older versions live under community/ with the version embedded in the filename.
Creator
github
Size
3.1 MB
Stars
176K
Updated
CommitOct 02
Age
15y
Commits · 90 Days