rain13 Posted October 30, 2017 Share Posted October 30, 2017 (edited) 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. Edited October 30, 2017 by rain13 Link to comment Share on other sites More sharing options...
justsomeguy Posted October 30, 2017 Share Posted October 30, 2017 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. Link to comment Share on other sites More sharing options...
rain13 Posted October 31, 2017 Author Share Posted October 31, 2017 What do you mean by update git? I have already latest git version. Or you mean run some command line command? Can you see screenshot when you follow this link:https://s1.postimg.org/85bw8veqxr/Capture.png Link to comment Share on other sites More sharing options...
justsomeguy Posted October 31, 2017 Share Posted October 31, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now