switching to another branch in git to pull code example Example: git pull on another branch git fetch origin master:master