I have a git folder with .gitignore structured like this:
input/
src/
output/
additional-1/
additional-2/
file.csv
file.txt
And my .gitignore currently looks like this:
input/
output/
file.txt
There are some files already (particularly from src/) added to git, and there are plenty which are not. I have noticed that it would probably be a lot easier for me to ignore all files except some directories/files. Therefore I followed this answer and replaced .gitignore body with:
*
!src/*
or
*
!*/src/
(not sure which version is correct)
However, now when I print git status I get only modified files from src/ directory and no untracked files, whereas there are certainly some files from src/ which are not yet added to git. Is is normal behaviour? If they are not recognised by git status how can I git add the new files? Or should I change somehow my "all-except" .gitignore version?
