1

I have a .gitignore file in my repo.

#DB Ignore
db_connect.php

#Environment Banner
template.php

#LDAP - ldap_start_tls() error
login.php

However, it is not ignoring the changes I make to "login.php". Both "db_connect.php" and "template.php" ignore just fine. Any idea as to why this is happening?

As a side note, in vi, the word "log" in "login.php" is highlighted in orange.

random21
  • 579
  • 1
  • 5
  • 15

1 Answers1

3

I reckon you've committed this file already to the repository, and so Git will be tracking the changes on it. You will have to remove the file using git rm before it will ignore it.

Ryan Bigg
  • 106,965
  • 23
  • 235
  • 261