Merge salesforce metadata with ease
Add the following lines to your ~/.gitconfig file
[merge "sfdcm"]
name = Merge Driver for Salesforce Metadata
driver = sfdcm %O %A %B %P
Add the following to your gitattributes file. This can be your <project-root>/.gitattributes
or <project-root>/.git/info/attributes
files
*.object merge=sfdcm
*.profile merge=sfdcm
*.assignmentRules merge=sfdcm
*.sharingRules merge=sfdcm
*.permissionset merge=sfdcm
*.workflow merge=sfdcm
*.objectTranslations merge=sfdcm
*.translations merge=sfdcm
*.labels merge=sfdcm
*.standardValueSet merge=sfdcm
*.globalValueSet merge=sfdcm
Test your tool is installed
sfdcm --version