how to use a different branch git pull code example Example: git pull on another branch git fetch origin master:master