Check out example codes for "there is no tracking information for the current branch". It will help you in understanding the concepts better.

Code Example 1

git branch --set-upstream-to=origin/master master
git pull

Learn ReactJs, React Native from akashmittal.com