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

posted @ 2016-02-03 12:33  phlsheji  阅读(216)  评论(0编辑  收藏  举报