Home git eliminate the folder from the Git index

eliminate the folder from the Git index [duplicate]

Author

Date

Category

does not work the rule, to exclude the folder in the .gitignore file, which lies in the project folder.

Rule:

git still does not ignore the .idea folder:

What am I doing wrong?


Answer 1, Authority 100%

You do everything right and this will exclude the .idea folder from the potential addition of Untracked files. Your problem is that .idea already in the repository. I must first exclude it from there, and then it will not try to penetrate there.
Try to do:

git rm -r --cached .idea
Previous articledocker vs vagrant
Next articleHow to compare time?

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions