Rename the Config.php to Config.php.example, so that when you modify the config file, it won't lead to "changes to be committed" in git tree.
add gitignore to ignore the config file, it contains private data, so it can prevent you from uploading your data to the server accidentally, and I also add the cache files to the gitignore.