Languages

Git - how to merge branch to master?

0 points
Asked by:
Dirask Community
6240

How to merge a new branch to the master branch using Git Bash?

1 answer
0 points
Answered by:
Dirask Community
6240

First thing you need to do is make sure you are on the branch you want to merge to, so change branch to master using:

git checkout master

then merge new_branch: 

git merge new_branch

 

Safe way if you are using remote repository:

git checkout master
git pull origin master
git merge new_branch
git push origin master
0 comments Add comment
Native Advertising
­čÜÇ
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join