Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toptal/gitignore
The largest collection of useful .gitignore templates
https://github.com/toptal/gitignore
gitignore gitignore-templates ignore-templates
Last synced: 26 days ago
JSON representation
The largest collection of useful .gitignore templates
- Host: GitHub
- URL: https://github.com/toptal/gitignore
- Owner: toptal
- License: mit
- Created: 2017-02-23T01:10:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T21:19:04.000Z (4 months ago)
- Last Synced: 2024-10-30T09:35:32.917Z (about 1 month ago)
- Topics: gitignore, gitignore-templates, ignore-templates
- Homepage: https://www.gitignore.io
- Size: 825 KB
- Stars: 1,705
- Watchers: 21
- Forks: 507
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- jimsghstars - toptal/gitignore - The largest collection of useful .gitignore templates (Others)
README
The largest collection of useful.gitignore
templates
## About
This project is also the canonical repository where [https://www.gitignore.io](https://www.gitignore.io) template list comes from. Here are the reasons behind the need for this repository: https://blog.joeblau.com/gitignore-io-template-fork
## Testing
This testing process ensures that [https://www.gitignore.io](https://www.gitignore.io) template list contains all of the changes from GitHub's template list. The CI system will automatically listen to commits from GitHub and merge any changes.
1. Pre-requisites
```sh
pip install moban
```2. Sync repository with [GitHub](https://github.com/github/gitignore) and copy templates
```sh
./.github/scripts/sync-github.sh
moban
```3. Make sure you don't commit files with blank lines or missing EOF line
```sh
./.github/scripts/check-whitespace.sh
```## Files
There are four file types that gitignore.io recognizes
1. Templates
A `.gitignore` file is the foundation of all templates. Each `.gitignore` file contains gitignore information related to the title of the file. For example, `Go.gitignore` contains a gitignore template that is used when creating a project using [the Go programming language](https://golang.org).
2. Patch
A `.patch` is a file to extend the functionality of a template. The source for some of the template files on [toptal/gitignore](https://github.com/toptal/gitignore) come from [github/gitignore](https://github.com/github/gitignore). GitHub maintains strict [contributing guidelines](https://github.com/github/gitignore#contributing-guidelines) and the `.patch` file allows anyone to extend any of the templates to add extra template rules
3. Stack
A `.stack` is a file that allows for the creation of code stacks (LAMP, MEAN, React Native). In today's development environment a `.gitignore` file is usually comprised of multiple technologies. A stack creates an elegant way to keep the stack up to date with child dependencies.
4. Order
The `order` file simply ensure that if certain templates are requested, the order in which the templates are loaded is maintained.