git status shows a file that I have listed explicitly in my .gitignore file

前端 未结 1 1955
礼貌的吻别
礼貌的吻别 2021-02-04 19:34

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 follow

1条回答
  •  一个人的身影
    2021-02-04 20:08

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

    Try (with git rm) a:

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

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

    0 讨论(0)
提交回复
热议问题