0

I'm using codeigniter and have a git local repo and a remote repo. When i want to develop on local environment i keep on having to change database.php and config.php to match local server connect parameters. Then before i push to remote repo, i have to change the files back so they can connect to hosting server of my website.

This is unproductive. I don't want to create another branch. Is there a way to use files only for local and when i push these files are ignored? Git ignore only on local, not remote?

user892134
  • 2,810
  • 14
  • 54
  • 109

0 Answers0