Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 Emacs 时,它会创建临时文件,例如#foo.txt#如何向其中添加模式.gitignore将忽略这些文件(# 被 git 解释为 .gitignore 中的注释)
#foo.txt#
.gitignore
尝试转义#字符:
#
$ cat .gitignore \#*.txt\#
我希望这有帮助。