I make an arbitrary change to a file within my git working directory.
git status
does not recognized that the file has changed.
git add /path
There are two general reasons why Git will ignore a file: gitignore and submodules.
To be more specific, the following conditions will cause Git to ignore a file when 'git add
' is invoked:
$GIT_DIR/exclude
..gitignore
file inside the repo..gitignore
file (specified by 'git config --global core.excludesfile
').More info can be found in another SO question:
Unable to track files within Git submodules