Reputation: 647
I am working on an application in which I have merged my code to the repository after taking the git pull.The problem is that earlier it was showing the options like accept current change , accept incoming change, accept both the changes. But now it is not showing the options now , I have taken the pull and stash poped my code but no I am stuck as I cannot proceed further.
Below are the snapshots for better understanding
Any solution please ?
Upvotes: 39
Views: 40440
Reputation: 586
here are the steps: what you have to do is go to the console/terminal a manually merge the branch that has the conflict into yours. So lets say for example that i was working on branch feat/#123/catalog and i wanted to merge into branch main or master or whatever branch you want your pull request for.
git merge main
and hit enter.Automatic merge failed; fix conflicts and then commit the result.
good luck 😉
Upvotes: 1
Reputation: 704
UPDATE August 2022 (VSCode version 1.71): Looks like the VSCode team heard our cries, and the experience has been improved:
The old inline conflict decorators are no longer disabled, so the merge editor and inline experience can be used together.
A file that has a conflict will now automatically show an Open in Merge Editor button to transition between the text and merge editors.
The behavior came with the July 2022 update which enabled a new 3-way merge editor by default.
To use the new 3-way merge editor, see this answer to another question.
Upvotes: 11
Reputation: 1051
If you still struggle with this issue try to turn off Git: Merge Editor flag.
Upvotes: 91