Possible Duplicate: Intellij Idea 9/10, what folders to check into (or not check into) source control?
I star
Remove .idea folder
$rm -R .idea/
Add rule
$echo ".idea/*" >> .gitignore
Commit .gitignore file
$git commit -am "remove .idea"
Next commit will be ok