update local repo from upstream command code example Example: update local repository from origin master and reabse git pull --rebase origin master