Skip to content

Commit

Permalink
Adding documentation on global ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
peat authored and defunkt committed Nov 9, 2010
1 parent aa2a94d commit f44d9f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit f44d9f5

Please sign in to comment.