git lfs 迁移

17次阅读

共计 559 个字符,预计需要花费 2 分钟才能阅读完成。

现有代码仓库有些资源文件占用比较大,所以迁移 lfs,按照 lfs 迁移
https://help.aliyun.com/document_detail/321367.html?spm=a2c4g.206889.0.i2

https://confluence.atlassian.com/bbkb/moving-git-large-files-to-git-lfs-in-bitbucket-cloud-1236441468.html
迁移之后,lfs 已经迁移成功,但是代码仓库体积 double 了,看.git 下是之前 object 的文件还存在,然后 lfs object 又有一份,
执行 git reflog 和 gc 之后 push 无变化

目前查询了一些博客或者问答,还没找到原因:
https://forum.gitlab.com/t/gitlab-lfs-migration-doubles-reposize/27151/2

https://community.atlassian.com/t5/Bitbucket-questions/Repository-not-shrinking-after-migration-to-LFS-What-do/qaq-p/908843

想问下有木有迁移过的小伙伴,是迁移之后需要用 BFG 再清理一遍 git 的提交记录吗

正文完
 0