I develop in a proprietary script language with very resumed code in which most configurations are contained inside the code itself.
The obvious problem would be the differences in the code itself between test and production environments and that's exactly what I'm trying to manage with GIT.
As my test env is quite volatile I figured I could create a branch in GIT for it while there are changes being made (and keep the code with test configurations in there) and after the code has been accepted I'd merge it into production.
Well, when I ask git to merge my branches it does a wonderful job with the code.. but the configs are migrated as well and than I have to open file-by-file, changing it back to what it was.
Is there anyway I could disable the automatic merge from GIT and threat everything as code conflicts to be manually merged with WinMerge or something later? The code is short, really. And since I'm gonna have to edit it anyway to apply the configurations...
ps.: please notice, I'm not asking how to configure WinMerge on git. I have these tools working. My question is how to always perform manual merges between branches.
thanks!
f.
.gitconfig
the following:[merge "manual"] name = manual merge driver = Unset
and then added to the .gitattribute:* merge=manual
(picked these up fromgit help merge
) didn't work though. could you be more specific with the git driver? thanks! f. – Foredate