add #*# glob to .gitignore?

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

    Another way of escaping # is to use the character set syntax, so that your #*# glob becomes

     [#]*[#] 
    

    in your .gitignore file.

提交回复
热议问题