tags:

views:

54

answers:

2

I have the following line in my .gitignore file:

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

but when I type 'git status' I am told the following:

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

I dont understand how a file which is explicitly listed as an ignore pattern could be listed as modified when I want git to ignore it.

There are no lines starting with a ! in my .gitignore file

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

+5  A: 

That should only happen if inv.pl is already tracked (see gitignore man page).

Try a:

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

If the file is already committed, see this SO answer.

VonC
A: 

Love this page: http://cheat.errtheblog.com/s/git

doublejosh