gitignore file not hide .idea directory for github

Valentyn Hruzytskyi :

I have a project with gitignore file:

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
Temp*
RationalValues*

https://github.com/hhlTer/quadraticEquation

but .idea directory still pushed in my repository...why?

This makes coding very difficult and inaccessible in branches.


I did add to gitignore all files from .idea, but all files still in repository

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
Temp*
RationalValues*
compiler.xml
encodings.xml
misc.xml
uiDesigner.xml
vcs.xml
workspace.xml
Søren Falch :

.gitignore will only make git ignore files in your local repository, and will not apply to files already pushed to the remote repo.

If you wish to remove the files from the remote repository, you can use git rm --cached -r .idea

Please also see this answer

Good luck! :-)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=113361&siteId=1