I have two major branches for my project - master
for the "production" version of the web app, and branch X
for the "test" version of the app.
I need to keep some code tweaks related to deployment settings, database configs, Google Web Analytic IDs etc in these two branches separate from each other, and prevent them from being merged whenever git merge X
happens on master or git merge master
is executed on branch X.
Is there a reliable way to do that, i.e. mark some commits as "for this branch only"?