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