2010-11-08 21:21:45 +01:00
|
|
|
# A Collection of Useful .gitignore Templates
|
|
|
|
|
2010-11-08 21:43:25 +01:00
|
|
|
That's what we're trying to build. Please contribute
|
|
|
|
by [forking][fk] and sending a [pull request][pr].
|
|
|
|
|
2010-11-08 23:56:21 +01:00
|
|
|
Also **please** only modify **one file** per commit. This'll
|
|
|
|
make merging easier for everyone.
|
|
|
|
|
2010-11-09 00:00:06 +01:00
|
|
|
Global gitignores (OS-specific, editor-specific) should go into the
|
|
|
|
`Global/` directory.
|
2010-11-08 21:52:45 +01:00
|
|
|
|
2010-11-08 21:46:40 +01:00
|
|
|
For more information on gitignore: [gitignore(5)][g5]
|
|
|
|
|
2010-11-08 21:43:25 +01:00
|
|
|
[fk]: http://help.github.com/forking/
|
|
|
|
[pr]: http://help.github.com/pull-requests/
|
2010-11-08 21:46:40 +01:00
|
|
|
[g5]: http://man.cx/gitignore
|
2010-11-09 01:11:36 +01:00
|
|
|
|
|
|
|
## Global Ignores
|
|
|
|
|
|
|
|
git has a global configuration that applies rules to all of
|
|
|
|
your projects. For example:
|
|
|
|
|
2010-11-09 14:58:39 +01:00
|
|
|
git config --global core.excludesfile ~/.global_ignore
|
2010-11-09 01:11:36 +01: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.
|