git-【十】忽略文件

1、在Git工作区的根目录下创建一个特殊的.gitignore文件,然后把要忽略的文件名填进去,Git就会自动忽略这些文件。

  不需要从头写.gitignore文件,GitHub已经为我们准备了各种配置文件,只需要组合一下就可以使用了。

  所有配置文件可以直接在线浏览:https://github.com/github/gitignore

2、编辑内容  

# Compiled class file
*.class

# Log file
*.log
/.settings/
.classpath
.project
/target/
.setting
posted @ 2017-05-03 08:42  bjlhx15  阅读(134)  评论(0编辑  收藏  举报
Copyright ©2011~2020 JD-李宏旭