There are numerous questions about this argument BUT none of them was useful in my case.
I've pushed my local project to a bitbucket repository, including a config.php file. Now I've changed my local copy of the config.php file and I need to keep it different from the bitbucket copy.
I updated my gitignore file but it didn't help because the config.php file was already tracked.
So:
I need to ignore the local config.php file BUT I DO NOT WANT TO DELETE the bitbucket config.php file.
Command line solutions are of course welcomed.P.s. Sub-question:
In SourceTree if you (right click)"stop tracking" an unstaged file, the software stages the remote deletion of that file. But if then you right click on the staged deletion record (before any commit/push), there are 2 choices: "Stop Tracking" and "Unstage from index". What is the meaning of those 2 options? Why allow to "stop tracking" for 2 times?