Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging code branch to master using TortoiseGit

I am new in TortoiseGit. I created one branch named Angular. Now I want to merge that code into master, but I don't know how can I merge code branch Angular to master using TortoiseGit(not using command prompt).

like image 579
angular Avatar asked Jul 05 '16 11:07

angular


People also ask

How do I merge codes from one branch to master?

First we run git checkout master to change the active branch back to the master branch. Then we run the command git merge new-branch to merge the new feature into the master branch. Note: git merge merges the specified branch into the currently active branch. So we need to be on the branch that we are merging into.

How do I merge codes between two branches?

To merge branches locally, use git checkout to switch to the branch you want to merge into. This branch is typically the main branch. Next, use git merge and specify the name of the other branch to bring into this branch. This example merges the jeff/feature1 branch into the main branch.

How do I merge a branch into master in GitHub?

In GitHub Desktop, click Current Branch. Click Choose a branch to merge into BRANCH. Click the branch you want to merge into the current branch, then click Merge BRANCH into BRANCH. Note: If there are merge conflicts, GitHub Desktop will warn you above the Merge BRANCH into BRANCH button.


1 Answers

Switch to the master branch.

Right click in the directory you have your repo, go to TortoiseGit->Merge.

Select the branch your want to merge into master, then put in your merge message, hit ok

  1. Checkout Master
  2. TortoiseGit->Merge
  3. Select branch you want to merge, hit ok
like image 190
Grinch91 Avatar answered Oct 06 '22 07:10

Grinch91