I work with both a Production and a Development version of a website. Sometimes I'm asked to do a quick modification on Prod (like adding a product) while I'm working on the development version too, which could result to confusion between the prod site and the dev one.
My solution to this was to change the main color of the site on development (local only, for myself) to quickly identify which one I was on. The problem is that I don't want to commit this modification on prod ever, but I don't want to do it / undo it for every branch I create either.
Which leads me to this question:
How can I untrack a portion of a file without untracking the whole file?
//Do not track here ever
- --colorMain : red
+ --colorMain : green
//Start tracking again
(rest of the file)
Or maybe there is just a better solution to my problem. Thanks in advance!