Remove IDE files from your git repository but keeping in your local directory
Sometimes when you use an IDE to develop, this adds several files to the working directory. In my case, i use RubyMine or PHP Storm that adds a hidden folder called .idea The problem with this, is that if you push to the origin repository your fellow developers will have merge problems occassionally. To avoid this you need to:
-
Ignore the file using .gitignore
.idea/
-
Remove the files from the git index but keeping in the working directory
git rm --cached
Commit and Push
Written by Carlos Andres Herrera
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ide
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#