oursThis option forces conflicting hunks to be auto-resolved cleanly byfavoring our version. Changes from the other tree that do notconflict with our side are reflected to the merge result.
This should not be confused with the ours merge strategy, which doesnot even look at what the other tree contains at all. It discardseverything the other tree did, declaring our history contains all thathappened in it.
theirsThis is opposite of ours.
$ git cherry-pick 1023e24error: could not apply 1023e24... [Commit Message]hint: after resolving the conflicts, mark the corrected pathshint: with 'git add <paths>' or 'git rm <paths>'hint: and commit the result with 'git commit'
$ git merge -Xtheirs topicFoo
CONFLICT (modify/delete): js/search.js deleted in HEAD and modified in topicFoo. Version topicFoo of js/search.js left in tree.
git merge -X theirs next-version# lots of files left that were modified on develop but deleted on next-versiongit checkout next-version .# files removed, now add the deletions to the commitgit add .# still have files that were added on develop; in my case they are all in web/git rm -r web