可在项目的根目录创建.gitignore文件
在.git/config文件core下面增加excludesfile = ../.gitignore
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
excludesfile = ../.gitignore