git how to pull from remote master branch to another local branch code example Example: git pull on another branch git fetch origin master:master