.gitignore通配符无法正常工作?("LIVE-*"模式与"LIVE-vhost"文件名不匹配)

bob*_*tle 15 git gitignore

速度超快.这是我的.gitignore(在我的回购的根级别

# Makefile stuff
LIVE-* 
.install-post-all
Run Code Online (Sandbox Code Playgroud)

当我这样做时,LIVE-*位不起作用:

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   pm-h8/etc/apache2/conf.d/LIVE-vhost
nothing added to commit but untracked files present (use "git add" to track)
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?

小智 26

删除要匹配的字符串后的空格.