.gitignore not ignoring .idea path

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

    If, after following steps from other answers, you still find that your instance of git running in bash or powershell just keeps on tracking the .idea/ folder, then try this!

    I discovered that Jet Brains IDE's have their own .gitignore, and run their own instance of git that will override your .gitignore settings!

    What I did to fix this was to navigate to /.idea/.gitignore, and change its contents to:

    /**
    

    so as to ignore everything in the folder.

    The image below shows how you can navigate to the .gitignore file from within your Jetbrains IDE.

提交回复
热议问题