Git is ignoring .idea folder, but that isn't in gitignore

前端 未结 3 861
长发绾君心
长发绾君心 2020-12-11 17:58

The problem:

I\'m on OSX. I have a very small .gitignore file, and I even tried completely deleting the file. Nothing helps. Git doesn\'t see anything under my .id

3条回答
  •  有刺的猬
    2020-12-11 18:39

    Do you have ~/.gitignore file? Here is the information that may be helpful.

    Git has a very flexible hierarchy of ignore files: First it reads .gitignore file in your home directory. Put here common data for all repos (*.bak, for example, you definitely do not need them in any repo). Then, you can have .gitignore file in any folder inside your repo. It impacts on any files in this folder and its subdirectories. Also, you can have excludes in .git/info/exclude. It differs from .gitignore because it is not indexed, and you can put personal settings here. Of course ~/.gitignore is not indexed too.

提交回复
热议问题