checkout pull request to another branch code example Example: git pull from another branch git pull origin <branch-name>