gpjmnq
Last Updated: February 25, 2016
·
5.427K
· zbrox
7f5eb8b92235249863df32ba699aaec5

Choose local or remote version in a merge conflict

From Git version 1.6.1 there are --ours and --theirs options for keeping only the local or remote version of a file with a merge conflict.

git checkout --ours <file_name>
git checkout --theirs <file_name>

Really simple to use!

Say Thanks
Respond
Filed Under