add #*# glob to .gitignore?

后端 未结 4 630
礼貌的吻别
礼貌的吻别 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:50

    Did you try

    \#*#
    

    Since 1.6.2, \ should be supported in .gitignore (see this patch)

    To be precise, 1.6.2.1 (March 2009)

    .gitignore learned to handle backslash as a quoting mechanism for comment introduction character "#".

提交回复
热议问题