【问题标题】:How to ignore files starting with # in git如何在git中忽略以#开头的文件 【发布时间】:2012-05-05 01:43:03 【问题描述】: 我想知道是否可以通过 .gitignore 在 git 中忽略以 # 开头的文件(以及如何实现)。我已经试过了 \\#.myfile 没有运气。 【问题讨论】: 那只会忽略它,即#.myfile。你所有的文件都叫#.something吗?然后使用 \#.*。 标签: git 【解决方案1】: 这是正确的语法: \#* 【讨论】: