Skip to content

Commit f44d9f5

Browse files
peatdefunkt
authored andcommitted
Adding documentation on global ignores
1 parent aa2a94d commit f44d9f5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ For more information on gitignore: [gitignore(5)][g5]
1414
[fk]: http://help.github.com/forking/
1515
[pr]: http://help.github.com/pull-requests/
1616
[g5]: http://man.cx/gitignore
17+
18+
## Global Ignores
19+
20+
git has a global configuration that applies rules to all of
21+
your projects. For example:
22+
23+
git config --global core.excludesfile=~/.global_ignore
24+
25+
... will apply the rules in ~/.global_ignore for all of your repos.
26+
27+
This is useful if you use an editor (like Emacs) that drops backup files,
28+
or if you work in an environment that generates binary or intermediate
29+
files that are always ignored.

0 commit comments

Comments
 (0)