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.)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With