

‘Theirs’ would refer to the changes made by the other team member. UPDATE: There is a shortcut for getting the copy from the other branch (and it even uses the terminology I was expecting): git checkout -theirs - somefile. Allow 'Resolve Using Theirs' when resolving a rebase conflict. 'Mine' refers to the changes that you just made. You then add the file and commit as described above. For example, if you were merging in from your remote when you received the conflict, and you wanted to resolve using the remote version, you would retrieve that copy of the file using: git checkout origin/master somefile.dll Note that in place of otherbranch, you can use any name ( treeish) that refers to a branch: a local branch name (otherbranch), a remote branch name (origin/master), a specific commit SHA (980e3cc), etc. Git commit –m “My commit message for the merge”

Now that you have the correct version of the file in your working copy, you can mark it as resolved (by adding it), and commit: git add somefile.dll If you prefer to resolve the conflict using their copy, you need to get the version of the file from the branch you were trying to merge in: git checkout otherbranch somefile.dll Git commit –m “My commit message for the merge” Resolve using theirs The game-within-a-game mechanics are such that you can be in the house and work together on the floor, or you can be away and not work on the floor. SourceTree + Beyond Compare to resolve Git conflicts user Name configured git account Email Mailbox when configuring git core autocrlf true. The idea is that you’ll play as a couple who are having a conflict on the floor. To resolve the conflict and keep this file: git add somefile.dll Sourcetree is a game that uses a game-within-a-game mechanic to simulate conflicts between people. The file in your working copy is still the copy from your current branch – in other words, it was not modified by the merge attempt. So what is the git equivalent? Resolve using mine In TortoiseSVN, I was used to being able to right-click on the file in question and choose “Resolve using mine”, or “Resolve using theirs”. Since the file cannot be textually merged, you need to make a decision: do you keep the version of the file in your current branch, or the version in the other branch. In this scenario, somefile.dll is a binary file that has been modified in both the current branch, and the branch you are attempting to merge in to the current branch. otherbranch:somefile.dllĬONFLICT (content): Merge conflict in somefile.dllĪutomatic merge failed fix conflicts and then commit the result.

When performing a merge in git, you might see the message: warning: Cannot merge binary files: HEAD:somefile.dll vs.
#Sourcetree resolve conflicts how to#
How to resolve a binary file conflict with Git 29 January, 2010.
