Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view the current .ignore list in TortoiseGit?

I'm trying to add a folder to Git version control (its sibling is already in Git). But Git tells me that this folder is already in version control or is on the Ignore list. (It's not in version control - no icon for "vc" and no version history).

But I can't find where to see the list of .ignored files. (I looked in the .git folder and in TortoiseGit settings. No luck.)

like image 765
Clay Nichols Avatar asked Jan 16 '17 21:01

Clay Nichols


1 Answers

Viewing a current Git ignore list is not that easy as there are several places where Git checks for .gitignore files.

Generally, within the working tree these are named .gitignore and can be located in every directory (in the repository root and every subdirectory). The defined ignore rules work (recursively) from the directory where the .gitignore is placed in.

Additionally, there is the .git/info/exclude file which is a local extension for the whole working tree.

Nonetheless, it is possible to define another file in git-config using the key core.excludesfile which defaults to %HOME%\.config\git\ignore.

See gitignore for more information.

like image 150
MrTux Avatar answered Nov 14 '22 23:11

MrTux