添加#*#glob到.gitignore?

编程入门 行业动态 更新时间:2024-10-26 00:23:41
本文介绍了添加#*#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?

本文发布于:2023-10-07 14:42:08,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:glob   gitignore

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!