Check out example codes for "Git command to check for any conflicts between new and old versions on your repository". It will help you in understanding the concepts better.

Code Example 1

$ cat mars.txt

Learn ReactJs, React Native from akashmittal.com