]> source.dussan.org Git - gitignore.git/commitdiff
Adding documentation on global ignores
authorPeat Bakke <peat@peat.org>
Tue, 9 Nov 2010 00:11:36 +0000 (16:11 -0800)
committerChris Wanstrath <chris@ozmm.org>
Tue, 9 Nov 2010 07:52:52 +0000 (23:52 -0800)
README.md

index e7a12d7a36bab0fde5c82870f5b35c4fd0bfe2c6..737a2243c88bcf3eb7ec565777be90fc5a72b8ec 100644 (file)
--- 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.