Jump to content

Need help with ignoring settings.php


rain13

Recommended Posts

Hi!

I have settings.php in root directory (same directory as my .gitignore). I have tried everything. But settings.php still shows up when I commit stuff and when I change it it shows modified as status.

I have tried everything:

.idea/
settings.php
/settings.php
./settings.php


Interesting is that it successfully ignores .idea directory but it doesnt ignore my settings file. Any ideas?

 

Below is screenshot that shows that settings.php is green right now.

Capture.png

Edited by rain13
Link to comment
Share on other sites

Git is software that you can download and update like any other software.  If you're using the latest version then that's probably not the issue though.

According to this:

https://git-scm.com/docs/gitignore

Files that are already being tracked won't get ignored if added to that file.  You need to stop the file from being tracked, and then ignore it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...