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
Related Contents:
- How do I resolve merge conflicts in a Git repository?
- I ran into a merge conflict. How do I abort the merge?
- How to undo a git merge with conflicts
- What’s the simplest way to list conflicted files in Git?
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- How do I use vimdiff to resolve a git merge conflict?
- Git merge left HEAD marks in my files
- hint: after resolving the conflicts, mark the corrected paths
- Undo a Git merge that hasn’t been pushed yet
- How can I selectively merge or pick changes from another branch in Git?
- How can I merge multiple commits onto another branch as a single squashed commit?
- Is there a git-merge –dry-run option?
- Merge development branch with master
- How to cherry-pick a range of commits and merge them into another branch?
- Merge, update, and pull Git branches without using checkouts
- How to import existing Git repository into another?
- Git conflict markers [duplicate]
- How do I ‘overwrite’, rather than ‘merge’, a branch on another branch in Git?
- Git merge errors
- Find unmerged Git branches?
- Choose Git merge strategy for specific files (“ours”, “mine”, “theirs”)
- How can I configure KDiff3 as a merge tool and diff tool for git?
- git stash -> merge stashed change with current changes
- Restart/undo conflict resolution in a single file
- Merging without whitespace conflicts
- How to use Visual Studio Code as the default editor for Git MergeTool including for 3-way merge
- can’t push to branch after rebase
- How to update my working Git branch from another branch (develop)?
- How Do I ‘git fetch’ and ‘git merge’ from a Remote Tracking Branch (like ‘git pull’)
- Have Git Select Local Version On Merge Conflict on a Specific File?
- GIT warning: too many files skipping inexact rename detection
- How to merge all files manually in Git?
- Merging changes from master into my branch
- What I can do to resolve “1 commit behind master”?
- Git pull – Please move or remove them before you can merge
- How to merge two branches with different directory hierarchies in git?
- How to resolve git error: “Updates were rejected because the tip of your current branch is behind”
- git: merge two branches: what direction?
- How to prevent many git conflicts when rebasing many commits?
- When to use the ‘–no-ff’ merge option in Git
- Removing/undoing a merge on Sourcetree
- Git rebase (Merge Squash) my feature branch onto another branch
- What exactly is a merge conflict?
- Git merge branch into master
- Git merge after fetch – how, exactly?
- How to make git merge handle uncommitted changes to my working tree?
- How do I resolve a conflict after git pull?
- Resolve merge conflicts: Force overwrite all files
- Are merges in Git symmetric?
- How to re-merge a file in the git?