Check out example codes for "push a new branch". It will help you in understanding the concepts better.

Code Example 1

git push -u origin <branch-name>

Learn ReactJs, React Native from akashmittal.com