Last Updated: December 26, 2018
·
13.81K
· helmedeiros

Remove intellij folders from your GitHub REPO

Introduction

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

Thanks!

over 1 year ago ·