Change directory to your project:
cd /repo/your-project
git rm -r --cached .idea git rm -f .idea/ git commit -m '[TASK] Removed .idea folder from repository' git push origin master
Change directory to your project:
cd /repo/your-project
git rm -r --cached .idea git rm -f .idea/ git commit -m '[TASK] Removed .idea folder from repository' git push origin master