Trying to use .gitignore file to ignore .log files 2018-06-07 16:07:52 This question already has an answer here: Ignore files that have already been committed to a Git repository [duplicate] 21 answers 您可以使用**/*.log ,其中双星意味着递归应用它,所以它将匹配每个子目录。 链接地址: http://www.djcxy.com/p/23416.html 上一篇: .gitignore不会忽略子目录,尝试一切 下一篇: 试图使用.gitignore文件忽略.log文件