I have a database.php. I want to keep it in my github repository without any sensitive information.
First I pushed to my repository without any sensitive info.
Now I added my database info so that I can use it locally.
I added to .gitignore. And I did rm --cached database.php. But it deleted the database.php from my github repository after a push.
How can I keep different content in my local and github repository?
Thanks in advance.