how to pull a git branch code example

Example 1: how a to pull a branch in git

$ git pull origin other-branch

Example 2: how to git pull origin master

git pull origin

Example 3: how to pull from a branch in git

git pull origin other-branch

Example 4: git pull

git checkout new_feature
git pull <remote repo>

Example 5: how to pull down a specific branch from github

git clone -b <branch> <remote_repo>