From f44d9f5a80b0c7f62054b1685c6d1cc7812f8c25 Mon Sep 17 00:00:00 2001 From: Peat Bakke Date: Mon, 8 Nov 2010 16:11:36 -0800 Subject: [PATCH] Adding documentation on global ignores --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e7a12d7a..737a2243 100644 --- a/README.md +++ b/README.md @@ -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.