How to add a config file to git with sensitive information
- Create a barebones file for the config page, without sensitive information
- git status
- git add <file>
- git commit -m "adding barebones config file, put your sensitive info here"
- git push
- vi .gitignore
- Add the <file> from above to the .gitignore
- git rm --cached <file>
- This should remove the file from git tracking
- Be carefull of the -f flag it'll remove the file completly
- Use your deploy program to move over the file during deployment
- Since this seems to fail often try git update-index --assume-unchanged <file>