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)
Try escaping the #
character:
$ cat .gitignore
\#*.txt\#
I hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With