添加#*#glob到.gitignore? [英] add #*# glob to .gitignore?

查看:106
本文介绍了添加#*#glob到.gitignore?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用glob #*#将emacs自动保存文件添加到我的.gitignore中,但当然,以散列开头的行是注释行。



如何在不将它作为注释处理的情况下将它放入我的.gitignore中?

您是否尝试过

  \#*#

自1.6.2开始, \ 应该支持 .gitignore (请参阅此修补程序



准确地说, 1.6.2.1 (2009年3月)


.gitignore 学会处理反斜杠作为注释引入字符的引用机制。



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 into my .gitignore without it being treated as a comment?

解决方案

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 "#".

这篇关于添加#*#glob到.gitignore?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆