.gitignore not ignoring .idea path

前端 未结 9 1951
无人及你
无人及你 2021-01-29 18:29

What am I missing that needs to be done in order to get git to ignore my .idea/ path?

ctote@ubuntu:~/dev/1$ git status
On branch master         


        
9条回答
  •  礼貌的吻别
    2021-01-29 18:48

    .gitignore only ignores newly added (untracked) files.

    If you have files that have already been added to the repository, all their changes will be tracked as usual, even if they are matched by .gitignore rules.

    To remove that folder from the repository (without deleting it from disk), do:

    git rm --cached -r .idea
    

提交回复
热议问题