For your reference, a discussion on .gitignore
Try gitignore .project and see if it solves the problem.