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.
Written by Dave Townsend
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Codeigniter
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#