Jump to content
Sign in to follow this  
rain13

Need help with ignoring settings.php

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

Share this post


Link to post
Share on other sites

I don't see your screenshot, but maybe update Git.  I also have that issue in PhpStorm for one repo, it insists on trying to commit or pull a file on the ignore list.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  

×