You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone! I have an issue while conflicts merge. To resolve conflicts GitHub Desktop opens a window, where I can select the lines I want to save in my branch. After I select them I commit changes, but instead window closing I have resolved lines colored white and all others to select. Besides, I can't even ignore strings like ">>>>>>> HEAD" etc. It results in a situation when I always have file with conflicts, which I can't compile.
Version
GitHub Desktop: 1.2.6
Operating system:
Windows 10 (17134.165)
Steps to Reproduce
Create two different branches
Make separate changes in the same file
Try to merge one in another.
Expected Behavior
Select in blue lines i want to save and expect conflict resolved after commit
Actual Behavior
Still have lines to choose from, can't ignore any of them.
Thanks for opening this @DronVol. Could you possibly share a screenshot of the issue you are having? That may give me a better idea of how best to walk you through resolving these conflicts.
Based on the log file it looks like there are a few files where you encountered conflicts:
Auto-merging src/views/homepage.js
CONFLICT (content): Merge conflict in src/views/homepage.js
Auto-merging src/secret/data_bank.js
CONFLICT (add/add): Merge conflict in src/secret/data_bank.js
Removing src/components/app/app_mine.js
Automatic merge failed; fix conflicts and then commit the result.
Auto-merging diploma/test.txt
CONFLICT (add/add): Merge conflict in diploma/test.txt
Automatic merge failed; fix conflicts and then commit the result.
For reference, we also have a guide that explains some steps to take when resolving merge conflicts. Hopefully that is helpful!
I have a test.txt file in a diploma repo. It contents the only string: "this is master". Then I make a branch called "late_ifz" and change this string to "this is branch". After this, I make some random changes in the master branch in this file and try to merge "late_ifz" branch with "master".
On screenshots, I show all the steps I make. I try to do the following: mark only lines I want to leave and commit changed file to git.
Looking at this screenshot, it looks like you've selected the conflict markers as well as the content to commit:
Desktop doesn't do anything clever about preventing you from including these lines in your partial commit, which is how I think the issue is occurring.
I'm going to close this in favor of #5400 where we'll be tracking all research and work on making this less painful for people. Thanks so much for laying out such a clear example with screenshots @DronVol!
Activity
steveward commentedon Jul 27, 2018
Thanks for opening this @DronVol. Could you possibly share a screenshot of the issue you are having? That may give me a better idea of how best to walk you through resolving these conflicts.
Based on the log file it looks like there are a few files where you encountered conflicts:
For reference, we also have a guide that explains some steps to take when resolving merge conflicts. Hopefully that is helpful!
DronVol commentedon Jul 31, 2018
I am sorry for the late response.
I have a test.txt file in a diploma repo. It contents the only string: "this is master". Then I make a branch called "late_ifz" and change this string to "this is branch". After this, I make some random changes in the master branch in this file and try to merge "late_ifz" branch with "master".
On screenshots, I show all the steps I make. I try to do the following: mark only lines I want to leave and commit changed file to git.




Thanks in advance!
shiftkey commentedon Aug 7, 2018
@DronVol thanks for the screenshots and details.
Looking at this screenshot, it looks like you've selected the conflict markers as well as the content to commit:
Desktop doesn't do anything clever about preventing you from including these lines in your partial commit, which is how I think the issue is occurring.
billygriffin commentedon Aug 14, 2018
I'm going to close this in favor of #5400 where we'll be tracking all research and work on making this less painful for people. Thanks so much for laying out such a clear example with screenshots @DronVol!