Developing locally? Here's a quick snippet for ignoring your local wp-config.php settings
git update-index --assume-unchanged -- wp-config.php
Thanks to Linquize: http://stackoverflow.com/a/14513920/1058371
####Use on other settings files as well
git update-index --assume-unchanged -- wp-content/sftp-config.json