git pull remote branch to local branch rebase code example Example: how to pull remote branch into local branch git fetch origin <branch-name>