1.eclipse选择window–>Prenference
2.选择Team–> Git下面的Ignoreed Resources –>Add Pattern –>一个一个的添加输入要忽略的文件(.classpath,.settings ,.project,target)– >最后点击Apply– >OK