How can I add pattern that start with hash to gitignore

Viewed 2093

When I work with Emacs it create temporary files like #foo.txt# how can I add pattern to .gitignore that will ignore those files (# is interpreted by git as comment in .gitignore)

1 Answers
Related