Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary conflict resolve doesn't work #8059

Closed
TerryChan opened this issue Aug 1, 2019 · 6 comments · Fixed by #8097
Closed

Binary conflict resolve doesn't work #8059

TerryChan opened this issue Aug 1, 2019 · 6 comments · Fixed by #8097
Assignees
Labels
bug Confirmed bugs or reports that are very likely to be bugs priority-2 Bug that affects more than a few users in a meaningful way but doesn't prevent core functions

Comments

@TerryChan
Copy link
Contributor

Description

When I pull repository from remote, there is conflict for an image. When I resolve the conflict with accept the remote branch in GitHub Desktop, and then commit and push, the result isn't expected, it's still the image in my local, not the image of remote.
image

Version

  • GitHub Desktop: 2.1.0
  • Operating system: Windows 10

Steps to Reproduce

  1. commit changes for 1.png
  2. pull from remote which has changes for 1.png
  3. show the conflict dialog for 1.png
  4. chose "use the modified file from origin/xxx"
  5. commit merge, and push

Expected Behavior

the image is the remote one

Actual Behavior

it's still the local one, didn't change

Additional Information

Even for banch merge, such as merge master into branch1, the image conflict resolve doesn't work either.

Logs

@TerryChan
Copy link
Contributor Author

Is this a complete feature? - I mean resolve binary conflict.
I found there was a good discussion #6062, but I can't resolve binary conflict in GitHub Desktop

@TerryChan
Copy link
Contributor Author

I think this is not a complete feature for resolving binary conflict. I found the code only stage binary conflict files when Commit Merge clicked, and do nothing else.
I think you need to execute the command below before stage binary conflict files:
git checkout --theirs -- path/to/conflicted-file.txt
#or
git checkout --ours -- path/to/conflicted-file.txt
As @shiftkey mentioned here #6062 (comment)
The commands above can resolve the binary conflict issue, and can also resolve the LFS conflict issue, as bug #7166 metioned

@outofambit
Copy link
Contributor

hi @TerryChan that's a really good find, thank you! you're diagnosis is completely right. i put up the fix at #8060, would you be willing to try it out and see if it fixes it for you? thanks again!

@outofambit outofambit added the bug Confirmed bugs or reports that are very likely to be bugs label Aug 1, 2019
@outofambit outofambit self-assigned this Aug 1, 2019
@TerryChan
Copy link
Contributor Author

I have verified, it works for me, and it can resolve both normal binary conflict, and LFS conflict. Thanks

@billygriffin billygriffin added the priority-2 Bug that affects more than a few users in a meaningful way but doesn't prevent core functions label Aug 2, 2019
@probablycorey probablycorey moved this from To do to In progress in Bug prioritization Aug 13, 2019
Bug prioritization automation moved this from In progress to Done Aug 16, 2019
@IFW-OMS
Copy link

IFW-OMS commented Nov 4, 2020

This issue appears to still exists in the current release of Github Desktop (2.5.6)

@lemonaidvkussakov
Copy link

The issue still exists and I am struggling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs priority-2 Bug that affects more than a few users in a meaningful way but doesn't prevent core functions
Projects
No open projects
6 participants