git rebase local branch with local master code example Example: update local repository from origin master and reabse git pull --rebase origin master