Git 忽略任何目录中的文件
示例
要忽略任何目录中的文件foo.txt,您只需输入文件名:
foo.txt # matches all files 'foo.txt' in any directory
如果只想在树的一部分中忽略文件,则可以使用**pattern指定特定目录的子目录:
bar/**/foo.txt # matches all files 'foo.txt' in 'bar' and all subdirectories
或者,您可以.gitignore在bar/目录中创建文件。与上一个示例等效,将bar/.gitignore使用以下内容创建文件:
foo.txt # matches all files 'foo.txt' in any directory under bar/
热门推荐
10 对患者生日祝福语简短
11 结婚祝福语简短装备
12 周岁祝福语学生文案简短
13 订婚领证祝福语简短精辟
14 导师获奖祝福语大全简短
15 新婚购房祝福语简短精辟
16 牛年祝福语简短的爱人
17 送芒果的祝福语简短
18 送给学长毕业祝福语简短