How to merge a
new branch to the
master branch using Git Bash?
First thing you need to do is make sure you are on the branch you want to merge to, so change branch to
git checkout master
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