我想使用 glob #*#
将 emacs 自动保存文件添加到我的 .gitignore,但当然,以哈希开头的行是注释行。
如何在不将其视为评论的情况下将其放入我的 .gitignore 中?
最佳答案
你试过吗
\#*#
从 1.6.2 开始,.gitignore
应该支持 \
(参见 this patch)
准确地说,1.6.2.1 (2009 年 3 月)
.gitignore
learned to handle backslash as a quoting mechanism for comment introduction character "#
".
关于git - 将 #*# glob 添加到 .gitignore?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2209810/