How to know which part of .gitignore that is actually responsible for ignoring some file?
Say I have .gitignore : x64/ x86/ bin/ obj/ FileA FileB FileC etc.. Now when I build, all build files that I want to ignore, are actually being ignored. However, the build fails for a missing file (Call it FileX). When I add FileX to the project, it builds fine with no errors. However, GIT does not see that I added that file, and when I do git status --ignored , I see the file under untracked files . I tried the solution in undo git assume unchanged with no success. Why this file is being ignored and I did not add it to .gitignore? To make sure why this file is being ignored, type: git check