速度超快。这是我的.gitignore(在我的仓库的根级别
# Makefile stuff
LIVE-*
.install-post-all
当我这样做时,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)
我做错了什么?
答案 0 :(得分:26)
删除要匹配的字符串后的空格。
答案 1 :(得分:8)
尝试通配目录:
**/LIVE-*