2010-11-08 12:21:45 -08:00
|
|
|
# A Collection of Useful .gitignore Templates
|
|
|
|
|
2010-11-08 12:43:25 -08:00
|
|
|
That's what we're trying to build. Please contribute
|
|
|
|
by [forking][fk] and sending a [pull request][pr].
|
|
|
|
|
2010-11-08 14:56:21 -08:00
|
|
|
Also **please** only modify **one file** per commit. This'll
|
|
|
|
make merging easier for everyone.
|
|
|
|
|
2010-11-08 15:00:06 -08:00
|
|
|
Global gitignores (OS-specific, editor-specific) should go into the
|
|
|
|
`Global/` directory.
|
2010-11-08 12:52:45 -08:00
|
|
|
|
2010-11-08 12:46:40 -08:00
|
|
|
For more information on gitignore: [gitignore(5)][g5]
|
|
|
|
|
2010-11-08 12:43:25 -08:00
|
|
|
[fk]: http://help.github.com/forking/
|
|
|
|
[pr]: http://help.github.com/pull-requests/
|
2010-11-08 12:46:40 -08:00
|
|
|
[g5]: http://man.cx/gitignore
|
2010-11-08 16:11:36 -08:00
|
|
|
|
2012-09-23 14:31:30 -07:00
|
|
|
## Pull Requests
|
|
|
|
|
|
|
|
Since this repo includes a large and diverse
|
|
|
|
number of programming languages, frameworks, editors,
|
2013-10-06 14:40:01 +02:00
|
|
|
and ecosystems, it's **very helpful** if you can provide
|
|
|
|
a link to information supporting your pull request.
|
|
|
|
Up-to-date, canonical documentation that mentions the files
|
2012-09-23 14:31:30 -07:00
|
|
|
to be ignored is best.
|
|
|
|
|
|
|
|
This ensures we can efficiently go through pull requests
|
|
|
|
and keep quality high.
|
|
|
|
|
2010-11-08 16:11:36 -08:00
|
|
|
## Global Ignores
|
|
|
|
|
|
|
|
git has a global configuration that applies rules to all of
|
|
|
|
your projects. For example:
|
|
|
|
|
2010-11-09 21:58:39 +08:00
|
|
|
git config --global core.excludesfile ~/.global_ignore
|
2010-11-08 16:11:36 -08:00
|
|
|
|
|
|
|
... will apply the rules in ~/.global_ignore for all of your repos.
|
|
|
|
|
|
|
|
This is useful if you use an editor (like Emacs) that drops backup files,
|
|
|
|
or if you work in an environment that generates binary or intermediate
|
|
|
|
files that are always ignored.
|