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 作者签名祝福语大全简短