Repo specific ignore files in git

前端 未结 4 2028

Is it possible to have repo specific .gitignore files? Eg:

[origin] .gitignore:

  • foo1.*
  • foo2.*

[another] .gitignore:

    <
4条回答
  •  既然无缘
    2020-12-18 11:10

    Yes you can, just can't have them in the same folder. If you create a new folder, day "deploy" and publish your deploy data there, it will use the .gitignore in that folder (not the root one).

提交回复
热议问题