git command pull from branch code example Example 1: how to git pull origin master git pull origin Example 2: how to pull from a branch in git git pull origin other-branch