I'm currently trying figure out Trunk Based Development with another team member:
Both of us are pushing directly to origin/master
When my teammate pushes, the repo in VSCode's Source Control Repositories
will indicate I can Pull 1 commits from origin/master
Assuming we have modified the same file, clicking on the indicator will pop up a message: Please clean your repository working tree before checkout.
Right now, it's cumbersome as I have to stash away my changes, pull and then pop the stash etc and I'm not even certain if I lost any changes
My main question here is, how can I bring up the Merge Conflict Editor to deal with this. I tried googling, but wasn't able to find out how this could be done
Any ideas?
The (better) way I wanted to handle the conflict is known as Pull (Rebase)
as mentioned by @orhtej2 (Thanks!), meaning, pulling
down all the changes from origin/master
and rebasing
our changes on top of it
Assuming that the origin/master
is ahead of me, the exact steps would be as follows:
Source Control
in VSCode will display the button Sync changes 1⬇ 1⬆
…
of Source Control
and click on Pull (Rebase)
Source Control
will list out the files that it does not know how to handleMerge Conflict Editor
merged
), go to Source Control
and click on Continue
origin/master
For conflicts these days, what I prefer to do is to
git reset --soft HEAD~1
git pull
's errors