How can I tell Git to use a different gitignore file than “.gitignore”?

后端 未结 3 1822
囚心锁ツ
囚心锁ツ 2021-01-19 01:17

I can tell Git where the Git repository is with --git-dir. I can tell Git where the working tree is with --work-tree. How do I tell Git where the g

3条回答
  •  死守一世寂寞
    2021-01-19 02:07

    Each repository has an info/exclude file - there should be one in .git/info/exclude and in .git.sync/info/exclude. Populate those exclude files just as you would .gitignore.

提交回复
热议问题