Gitignore - how to ignore .idea / directory for ruby

I placed .idea / in both my ~/.gitignore_global and my specific .gitignore project (and committed it later), but I still see the file as uninstalled.

How can I ignore these files?

I have done this:

 git config --global core.excludesfile ~/.gitignore_global 

but it did not help.

file name is ok:

 $ ls ~/.gitignore_global /home/durrantm/.gitignore_global 

enter image description here

+4
source share
3 answers

These files have already been added to the git repository. Do git rm --cached .idea , then commit.

+7
source

You may also need to run the filter branch to completely destroy the folder of your entire repository. On github you will find convenient documentation for this thing.

0
source

Try git update-index --assume-unchanged

0
source

Source: https://habr.com/ru/post/1433147/


All Articles