how to do a git pull from a branch code example
Example 1: how a to pull a branch in git
$ git pull origin other-branch
Example 2: what is git pull rebase
The content of your work tree should end up the same in both cases; you've just created a different history leading up to it.