Resolve Git merge conflicts in favor of their changes during a pull

git pull -s recursive -X theirs <remoterepo or other repo>

Or, simply, for the default repository:

git pull -X theirs

If you’re already in conflicted state…

git checkout --theirs path/to/file

Leave a Comment