Check out example codes for "comments in .gitignore". It will help you in understanding the concepts better.

Code Example 1

start with '#' like in python. thats it
# this is comment simple

Learn ReactJs, React Native from akashmittal.com