How to remove .idea folder from Your Repository
If You start new project, some tools create more folders and files. How to take off the garbage after a quick and automatic commit and push from intellij?
- Add .idea directory to the list of ignored files
echo '.idea' >> .gitignore
- Remove the directory only from the repository
git rm -r --cached .idea
- Send the change forward
git add .gitignore git commit -m 'untracking .idea' git push origin master