Merge a branch into the current branch

Usually, you’ll want to merge a branch into the master branch, so first make sure you’ve moved into the master branch with git checkout master and then:

git merge new-branch-name

That will merge the contents of new-branch-name in with the master branch (or whatever branch you’re currently on).

Last updated