I am one of those developers that still believe using an IDE makes me more productive, and like many others out there, my favourite IDE is PHPStorm. It is an absolutely amazing product, but there is one thing that annoys me about it and that is the idea folder it adds to each project.
Luckily Git makes this an easy problem to solve with its global ignore file. To find this file simply run the following command in the terminal:
git config --get core.excludesfile
Mine was located in: /Users/
Simply add .idea to the end of that file and never worry about accidentally committing that annoying folder again.