Git excludes vs ignores

I use Tower to use Git on Mac. The settings in Tower have an Ignores section that creates .gitignore but has a different section called Exceptions. And it seems that you can exclude it using "# Git ls-files --others --exclude-from = .git / info / exclude".

Tower screenshot

What excludes? Why exclude when gitignore is available?

+30
git gitignore
Apr 08 2018-12-12T00:
source share
1 answer

This is a list of files that are not in .gitignore (which may be versions), but which you want to exclude repo copies from your copy.

From the docs :

Templates specific to a specific repository, but which should not be used in conjunction with other related repositories (for example, auxiliary files that are inside the repository but are specific to a single workflow user), must be included in the file $ GIT_DIR / info / exclude.

Please note that .git / info / exclude cannot be a version because it is in the .git directory.

+39
Apr 08 '12 at 21:40
source share
— -



All Articles