Last Updated: February 25, 2016
·
1.748K
· maumagau

Codeigniter & Git - temporarily ignore database config

Impress all your friends with your Xtreme productivity and console prowess -

git config alias.ignoredb "update-index –assume-unchanged application/config/database.php"
git config alias.unignoredb "update-index –no-assume-unchanged application/config/database.php"

Now you just just type git ignoredb, and when you make a change to the db config you want recorded, type git unignoredb, commit the change, and then git ignoredb again.