.gitignore not ignoring .idea path

前端 未结 9 1953
无人及你
无人及你 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:42

    Remove the file from the repository run below command

    git rm --cached .idea/
    

    now update your gitignore file to ignore .idea folder run below command

    echo '.idea' >> .gitignore
    

    add the .gitignore file

    git add .gitignore
    
    git commit -m "Removed .idea files"
    

提交回复
热议问题