Eclipse切换到Navigator视图,找到.gitignore文件(如果是maven项目,一般找作为modules的项目的.gitignore文件),添加内容:

.settings
.project
target
.classpath
*.gitignore

 

相关文章: