Is it possible to have a tracked .gitignore AND an untracked .gitignore?

前端 未结 1 1141
旧时难觅i
旧时难觅i 2021-01-22 19:10

I am collaborating on a project with others, and there is a .gitignore in the root directory which is committed to git. What if I wanted to make a new file or directory in root

相关标签:
1条回答
  • 2021-01-22 19:39

    You can set an additional gitignore file for the current repository with the core.excludesfile config option (as mentioned in the comments):

    git config core.excludesfile .my_gitignore
    

    And add your personal files to this file (as well as ".my_gitignore" itself).

    0 讨论(0)
提交回复
热议问题