소스 검색

Adding documentation on global ignores

Peat Bakke 14 년 전
부모
커밋
f44d9f5a80
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      README.md

+ 13 - 0
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.