Ignoring database.yml
When database.yml is already in the repository, but you must have a modified local copy:
git update-index --assume-unchanged config/database.yml
When database.yml is already in the repository, but you must have a modified local copy:
git update-index --assume-unchanged config/database.yml