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

前端 未结 7 1872
盖世英雄少女心
盖世英雄少女心 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 18:56

    What you are searching for is git update-index --assume-unchanged default_values.txt.

    See the docs for more details: http://www.kernel.org/pub/software/scm/git/docs/git-update-index.html

提交回复
热议问题