Professional Documents
Culture Documents
Azure DevOps Stuff
Azure DevOps Stuff
Basically, you have to checkout to the updated branch – for this case develop branch - , do a git fetch –
git pull, and after that checkout to the outdated branch and do a git rebase updated-branch name
In this example develop was previously worked and the changes went ahead of my 170002 branch so I
had to update my branch doing a rebase
Sometimes you have git fetch and git pull from the branch you are going to merge since the target merge
might be out of date too
Sometimes target branch is up to date, so a git fetch and pull is needed like below
# git pull
Updating bd4fc53..dabebeb
Fast-forward
fileA | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
After target branch is up to date, merging conflict popup
So if you run this command in the source branch, a new screen will popup to fix in the Merge Editor
Important in this example I used develop target branch but the command would be for this example git
merge main
Once changes to fix merge are done run a git commit as next command and Sync Changes in VS Code GUI
Best practice, always to do a pull before doing a push, valid before using fetch