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
![Share on Facebook Facebook](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/facebook.png)
![Share on Twitter twitter](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/twitter.png)
![Share on Reddit reddit](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/reddit.png)
![Pin it with Pinterest pinterest](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/pinterest.png)
![Share on Linkedin linkedin](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/linkedin.png)
![Share by email mail](https://tom.sapletta.com/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/mail.png)