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
Using Git as a source control provider I have an issue whenever I try to merge a conflict file with remote repository keeping my current version.
The steps are the following:
A file has been modified on remote repository and I modify the same file on the local repository.
When I try to push my changes to the server I recieve (correctly) an error message (no-fast-forward)
and I must perform a pull to update my local repository.
When pulling, the editor warn me about the conflict on the file, giving me four option (Accept Current
Change, Accept Incoming Change, Accept Both Changes, Compare Changes).
I accept the current change (my local version) and save the file. When I try to stage the change the file
is not added to the section STAGED CHANGES but it disappears. Git remain in a "merging" status and I
can't do anything (a push gives me the same error of the first push and a pull gives me an error like I
didn't resolved the conflict; in fact in the .git folder I still have the MERGE_HEAD file)
If I Accept the Incoming Change, Accept Both Changes or add additional chars to my previous version (to change the version I tried to commit before) everything works fine. I think that when I choose "Accept Current Change" and try to stage merge changes the editor (or Git?) doesn't add the file to the STAGED CHANGES because it's identical to the version previously committed, and doesn't update the git status, that remains stuck in merge conflict.
The workaround of adding additional chars to the previous version when merging works fine, but I need to know if it's a bug or I'm missing some steps when merging.
If there's a solution please reply also in the same Stack Overflow question, to help other people resolving this issue.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.
Using Git as a source control provider I have an issue whenever I try to merge a conflict file with remote repository keeping my current version.
The steps are the following:
A file has been modified on remote repository and I modify the same file on the local repository.
When I try to push my changes to the server I recieve (correctly) an error message (no-fast-forward)
and I must perform a pull to update my local repository.
When pulling, the editor warn me about the conflict on the file, giving me four option (Accept Current
Change, Accept Incoming Change, Accept Both Changes, Compare Changes).
I accept the current change (my local version) and save the file. When I try to stage the change the file
is not added to the section STAGED CHANGES but it disappears. Git remain in a "merging" status and I
can't do anything (a push gives me the same error of the first push and a pull gives me an error like I
didn't resolved the conflict; in fact in the .git folder I still have the MERGE_HEAD file)
If I Accept the Incoming Change, Accept Both Changes or add additional chars to my previous version (to change the version I tried to commit before) everything works fine. I think that when I choose "Accept Current Change" and try to stage merge changes the editor (or Git?) doesn't add the file to the STAGED CHANGES because it's identical to the version previously committed, and doesn't update the git status, that remains stuck in merge conflict.
The workaround of adding additional chars to the previous version when merging works fine, but I need to know if it's a bug or I'm missing some steps when merging.
If there's a solution please reply also in the same Stack Overflow question, to help other people resolving this issue.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: