Deleted old repository and made new one. New repository has git ignore file to ignore .class files etc. Old one did not