Instead of adding this to the repo .gitignore, you can make your own that isn't committed. You can either make a global .gitignore file for all repos or edit .git/info/exclude in this repo if you only want to ignore .idea within the `react` dir: https://help.github.com/articles/ignoring-files