cant pull another branch code example Example 1: git pull from another branch git pull origin <branch-name> Example 2: git pull on another branch git fetch origin master:master