add comments in gitignore file code example Example: comments in .gitignore start with '#' like in python. thats it # this is comment simple