Last Updated: December 26, 2018
· helmedeiros

Remove intellij folders from your GitHub REPO


Sometimes you just need to take off the garbage after a quick and automatic commit and push from intellij.

To do so, you will need:

1. Add .idea directory to the list of ignored files

$ echo '.idea' >> .gitignore

2. Remove the directory only from the repository

$ git rm -r --cached .idea

3. Send the change forward

$ git add .gitignore
$ git commit -m 'untracking .idea'
$ git push origin master

1 Response
Add your response


over 1 year ago ·