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 感谢教官文案祝福语简短