I have file named config.xml
. I added .gitignore and within it I put config.xml. I do git rm --cached config.xml
and commit my changes. In the future my changes on config.xml in my local won't effect anything. But that's not what I want.
I want 2 version of config.xml. On my remote branch I will use production code and in my local I want to have localhost configuration. How to do that? I'm lost..