I want to add emacs autosave files to my .gitignore with the glob #*# but of course, lines starting with a hash are comment lines.
#*#
How can I get this in
This worked for me.
*[#]*[#] *[#]*
@CharlesStewart was close but did not work for sub-directory files which had autosave generated files.