Help with .gitignore please
Posted on 2011-02-22
Git noob looking for clarification of how .gitignore works please.
For instance, I have a CodeIgniter app repo set up on github.com, but I am trying to keep the my account details out of config.php and database.php.
I've been able to get exactly two different scenarios to work:
1. Missing Files
,gitignore working as expected, but the repo does not conatin any config.php or database.php file.
2. Files exist
.gitignore is in place. The config.php and database.php files exist as well and their changes are tracked so sensitive stuff ends up in public.
Is there not a way to upload the original file, push it to the repo, and then add the files to .gitignore so that any further changes are not tracked?