git 提交ignore files

1,首先在命令行创建.gitignore文件

  $ touch .gitignore
2,在文件.gitignore 加入要忽略的文件入
$ echo *.class >  .gitignore
3,加入到全局的git中

$ git config --global core.excludesfile .gitignore




參考:http://blog.csdn.net/joeyon1985

原文地址:https://www.cnblogs.com/bhlsheji/p/5179435.html