This is GitHub's collection of .gitignore file templates, used to populate the .gitignore template choosers in the GitHub.com interface when creating new repositories and files. Templates are organized into a root folder of common-use templates, a Global folder for editors, tools and operating systems, and a community folder for specialized templates. It is aimed at developers who want a starting set of ignore rules for a language, framework, tool or environment.
Install & use
Install
git clone https://github.com/github/gitignore.git
Usage
# open github/gitignore and follow its README
github/gitignore is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Root folder holds templates for popular languages and technologies
Global folder covers editors, tools and operating systems
community folder holds specialized and versioned templates
Root templates are evergreen, with previous versions under community/
Templates are curated for the most common and helpful cases
Licensed under CC0-1.0
Best for
Starting a .gitignore for a new repository
Adding editor or OS ignore rules globally
Finding ignore rules for a specific framework or tool
Contributing a new ignore template via pull request
Pros
Used to populate GitHub's .gitignore template choosers
Organized into root, Global and community folders
Versioned templates keep the latest version at the root
Released under CC0-1.0
Cons
Aims to curate the most common templates, not cover every project
Templates that are mostly version-specific file lists belong under community/
Contributions must follow the Contributing Guidelines
Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget ( Please follow…