How to comment in .gitignore?

Can anyone tell me how can I comment in .gitignore file?

A line starting with # serves as a comment.

# /node_modules

For example, git will not count this line.