How can I make git ignore future revisions to a file?

前端 未结 7 1885
盖世英雄少女心
盖世英雄少女心 2020-11-28 18:31

I have created a default version of a file included in a git repository. It\'s important that when someone clones the repository, they get a copy of this file. However, I

7条回答
  •  孤独总比滥情好
    2020-11-28 19:00

    I suggest looking into submodules. If you place the machine specific files in a submodule, git add should ignore it.

提交回复
热议问题