在window->Preferences->Team->Ignored Resources中Add Pattern:
.classpath .project .settings target
转载于:https://www.cnblogs.com/wjc920/p/9256185.html