The git status shows the file that I explicitly indicated in the .gitignore file

I have the following line in a .gitignore file:

var/www/docs/.backroom/billing_info/inv.pl

but when I type 'git status' they tell me the following:

#   modified:   var/www/docs/.backroom/billing_info/inv.pl

I do not understand how a file that is explicitly specified as an ignore pattern can be specified as modified when I want git to ignore it.

No lines starting with! in my .gitignore file

Here is my entire .gitignore file for reference: http://pastebin.com/Jw445Qd7

+5
source share
1 answer

This should only happen if it is inv.plalready being tracked (see the gitignoreman page ).

Try (c git rm) a:

git rm --cached var/www/docs/.backroom/billing_info/inv.pl

, . SO .

+18

All Articles