1
0
mirror of https://github.com/github/gitignore synced 2024-12-24 22:00:16 +01:00
gitignore/README.md

30 lines
919 B
Markdown
Raw Normal View History

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
## Global Ignores
git has a global configuration that applies rules to all of
your projects. For example:
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.