git assume-unchanged implications

前端 未结 1 403
Happy的楠姐
Happy的楠姐 2021-01-24 17:29

Say I have a file foo.bar which is tracked by git and at some point I want my local repository to ignore the changes I make to this file. This is, if I

1条回答
  •  一整个雨季
    2021-01-24 17:51

    The "assume-unchanged" bit is stored in your index, not in the repository itself. Thus fetch/pull/push do not propagate that setting to or from other repositories, which means it is a local setting. Users of other clones of the repository may very well create new commits involving that file. I'm not sure there's a "simple" answer regarding how to deal with this scenario, as it depends on what exactly you're trying to do, and what is being done in other repositories.

    0 讨论(0)
提交回复
热议问题