Update a development team with rewritten Git repo history, removing big files

后端 未结 4 1241
盖世英雄少女心
盖世英雄少女心 2020-12-01 05:29

I have a git repo with some very large binaries in it. I no longer need them, and I don\'t care about being able to checkout the files from earlier commits. So, to reduce th

4条回答
  •  旧时难觅i
    2020-12-01 05:48

    If you don't make your developers re-clone it's likely that they will manage to drag the large files back in. For example, if they carefully splice onto the new history you will create and then happen to git merge from a local project branch that was not rebased, the parents of the merge commit will include the project branch which ultimately points at the entire history you erased with git filter-branch.

提交回复
热议问题