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