How to update a branch with master on GitHub

It’s simple and can be done by two command lines:

git checkout sprint
git merge origin/master

This will merge the remote master branch to the local sprint branch. So your local sprint branch is up to date like master branch.

If you need to do this on Github.com, then create a PR(Pull Request) and then select two branches(base:sprint and compare:master) and then merge it.

Leave a Comment