.class files need to be in .gitignore ( keep the folder structure, just remove *.class files) workspace xml also should be in .gitignore