Note:
This is not about fixing like git rm -r --cached . && git add .
I actually want to be able to list the files only.
Why:
Sometimes when I edit my .gitignore and forget the above command I end up with files that are still in the repository, but should have been ignored.
What:
What I want to accomplish is to write a shell script, that is able to list all files on my filesystem that should
have been ignored, but are still present.
Outcome:
In the end, I want to implement it to a continuous integration server, that is going to check if the rules from .gitignore
match the files that are inside the repository.
Is there any way to parse the .gitignore
by hand?