how to pull code from different branch in git code example Example: git pull on another branch git fetch origin master:master