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
Written by Hélio Cabral Medeiros
Related protips
1 Response
Thanks!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Intellij
Authors
helmedeiros
13.85K
kh1ramatsu
5.117K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#