Removing .class files and adding entry to .gitignore for them