Jump to content
Sign in to follow this  

Need help with ignoring settings.php

Recommended Posts


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:


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.


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:


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...