Ignoring special files with git

It is surprising how a simple question could set you off sometimes. I am generally considered a git expert in my company, but today I had a humiliating experience over a very simple question about .gitignore file.

I have been asked how to ignore files, which start with a sharp (#) sign. And I did not know the answer. Of course, the answer is simple:

# Ignore files starting with # sign
\#*

One never runs out of things to learn...