HTML5 Boilerplate includes a basic project-level
.gitignore. This should
primarily be used to avoid certain project-level files and directories from
being kept under source control. Different development-environments will
benefit from different collections of ignores.
OS-specific and editor-specific files should be ignored using a “global ignore” that applies to all repositories on your system.
For example, add the following to your
~/.gitconfig, where the
in your HOME directory contains the files and directories you’d like to
[core] excludesfile = ~/.gitignore