Skip to content

Merge conflicts issue #5264

Closed
Closed

Description

@DronVol

Description

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

  1. Create two different branches
  2. Make separate changes in the same file
  3. 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.

Additional Information

Logs

2018-07-27.desktop.production.log

Activity

  1. added
    more-info-needed
    on Jul 27, 2018
  2. steveward commented on Jul 27, 2018

    @steveward
    Contributor

    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!

  3. DronVol commented on Jul 31, 2018

    @DronVol
    Author

    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.
    screenshot_11
    screenshot_12
    screenshot_13
    screenshot_14

    Thanks in advance!

  4. shiftkey commented on Aug 7, 2018

    @shiftkey
    Member

    @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.

  5. billygriffin commented on Aug 14, 2018

    @billygriffin
    Contributor

    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!

  6. removed
    more-info-needed
    on Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions