Check out example codes for "how to track a branch on github". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com