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.
You should make 2 different files one actual database.php and one database.php.example or something like that and then add database.php to .gitignore
database.php
database.php.example
.gitignore