I am new at github and I am developing an app that has a config.php file that you must enter the database credentials.
config.php
In my github repository the file
To stop tracking a file you need to remove it from the index. This can be achieved with this command:
git rm --cached
Commit that change
git commit -am "Remove ignored config.php"