vscode - Merge one branch into another

11,181

Solution 1

I have created an extension which is available under the name: Git Merger in the vscode marketplace.

Solution 2

Use Git: merge branch command

VSCode now has built-in branch merge support.
see In Visual Studio Code How do I merge between two local branches?

Press Ctrl/Cmd+Shift+P (Or View > Command Palette...) and look for Git: merge branch.

You select the branch to merge from (if you have a workspace open, the command lets you choose the project within the workspace).
Conflict management is also implemented, highlighting the Git conflict markers (see link above).
The branch gets merged with the commit message "Merged branch '[branchname]'"

Share:
11,181

Related videos on Youtube

Shahar Kazaz
Author by

Shahar Kazaz

Working as a Front-End developer for the past couple of years and have hands on experience in building web apps from end to end. Coding is beyond just a job I love everything about it, from facing endless challenges to seeing your idea come to life. So I'm here to learn and share my knowledge, as Albert Einstein once said: “The important thing is not to stop questioning; curiosity has its own reason for existing.”

Updated on June 04, 2022

Comments

  • Shahar Kazaz
    Shahar Kazaz almost 2 years

    Is it possible to merge one branch into another using the vscode interface and not the terminal? or is there any extension that makes this possible?
    using vscode v1.13.0
    Thanks in advance.

  • aj go
    aj go over 3 years
    by interface, does he mean only when using shortcut key ctrl + shift + p? I couldn't find what changes in the source control was added when I installed it in VS code