I use Tower for using Git in Mac. The settings in Tower has Ignores section which creates the .gitignore, but it has another section named "Excludes". And it seems like that one can use excludes with "# git ls-files --others --exclude-from=.git/info/exclude".
What Excludes is for? Why one needs excludes when gitignore is available?
It's a list of files that are not in
.gitignore
(which can be versioned), but which you want to exclude on your machine's copy of the repo.From the docs:
Note that .git/info/exclude can not be versioned because it's in the .git directory.