diff options
author | Peat Bakke <peat@peat.org> | 2010-11-08 16:11:36 -0800 |
---|---|---|
committer | Chris Wanstrath <chris@ozmm.org> | 2010-11-08 23:52:52 -0800 |
commit | f44d9f5a80b0c7f62054b1685c6d1cc7812f8c25 (patch) | |
tree | 5919380c2db49caa812dc171a69c8e58b48841ff /README.md | |
parent | aa2a94d1903da607c350f96bb6f6114cfdbe8679 (diff) | |
download | gitignore-f44d9f5a80b0c7f62054b1685c6d1cc7812f8c25.tar.gz gitignore-f44d9f5a80b0c7f62054b1685c6d1cc7812f8c25.zip |
Adding documentation on global ignores
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -14,3 +14,16 @@ For more information on gitignore: [gitignore(5)][g5] [fk]: http://help.github.com/forking/ [pr]: http://help.github.com/pull-requests/ [g5]: http://man.cx/gitignore + +## 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. |