Check out example codes for "get a remote branch git". It will help you in understanding the concepts better.

Code Example 1

git fetch origin 

git checkout –track origin/xyz

Code Example 2

$ git checkout --track origin/newsletter
Branch newsletter set up to track remote branch newsletter from origin.
Switched to a new branch 'newsletter'

Learn ReactJs, React Native from