Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

How do you quickly take one side's version for a conflicted file?

IntermediateConceptConflicts, remotes, fetch, pull and push
Answer

During a merge, --ours is your current branch and --theirs the branch being merged. During a rebase the meanings flip, because your commits are being replayed onto the upstream: --ours is the upstream and --theirs is your commit.

git checkout --theirs path/file && git add path/file
git restore --theirs path/file
All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push