Is it possible to slim a .git repository without rewriting history?

后端 未结 4 648
礼貌的吻别
礼貌的吻别 2020-12-15 05:24

We have a number of git repositories which have grown to an unmanageable size due to the historical inclusion of binary test files and java .jar fi

4条回答
  •  情深已故
    2020-12-15 05:54

    I honestly can't think of a way to do that. If you think about what Git "promises" you as a user, with regards to data integrity, I can't think of a way you could remove a file from the repository and keep the same hash. In other words, if what you're asking were possible, then Git would be a lot less reliable...

提交回复
热议问题