Git, GitHub: Remove the directory only from the repository
$ git rm -r --cached .idea #From https://coderwall.com/p/qaiaog