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.
我在目录中有一个 .gitignore 文件(不是根目录)
.ascii
但是当我即将提交更改时,这些文件一直显示为未跟踪。
Untracked files: # (use "git add <file>..." to include in what will be committed) # # new file: test.ascii
我确定这些文件与忽略文件位于同一目录中。为什么忽略文件中的规则不起作用?
.ascii不匹配test.ascii。您想在扩展名前加上通配符:*.ascii.
test.ascii
*.ascii