git to update to new branch from current branch code example Example: git how to update branch from master git fetch git rebase origin/master