add #*# glob to .gitignore?

后端 未结 4 634
礼貌的吻别
礼貌的吻别 2020-12-13 07:45

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

4条回答
  •  庸人自扰
    2020-12-13 08:38

    This worked for me.

    *[#]*[#]
    *[#]*
    

    @CharlesStewart was close but did not work for sub-directory files which had autosave generated files.

提交回复
热议问题