When using git, it is possible to ignore files using
.gitignore. Using your favorite ide, different other files or folders like (.idea, .iml, .settings, .project, .classpath,…) may be created in within the working copy. It is annoying to add the ide specific files manually to the
.gitignore for every repository.
But there is a way to ignore all the ide specific files without manually adding them to each
.gitignore. Using the option
core.excludesfile within the global git configuration makes git to ignore those files in all local repositories. In order to add the option, simply run the following command:
git config --global core.excludesfile ~/.gitignore