Repo specific ignore files in git

前端 未结 4 2039

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

[origin] .gitignore:

  • foo1.*
  • foo2.*

[another] .gitignore:

    <
4条回答
  •  Happy的楠姐
    2020-12-18 11:11

    Yes, you can put per repository ignore patterns in .git/info/exclude in each repository.

    (Note, this only affects what is ignored in each repository, it won't affect files that you actively place under source control and the push. I'm not completely clear on your desired use case.)

提交回复
热议问题