1.创建git忽略文件

创建XXXX.ignore文件,填写需要忽略的文件,在.gitconfig中配置
[core]
excludesfile = XXXX.ignore路径