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