how to pull from gitr code example
Example 1: how to pull from 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.