I think I'm using .gitignore wrongly. I try to retain my config/db.js
to have 2 version, one is to connect to localhost db on my developement environment, one is to connect to live db.
I created .gitignore file and put in config/db
, so that I can achieve that. I commit and push everything is working ; but when I put, someone config/db.js
got overwritten. What's wrong?