gpt4 book ai didi

git - squash commit 是否释放 Git LFS 存储

转载 作者:太空狗 更新时间:2023-10-29 13:25:01 29 4
gpt4 key购买 nike

这是我自己问的一个问题:

  • 如果我们知道 git lfs 保留被跟踪的每个二进制文件的每个版本的完整副本 (AFAIK);

  • 我们的一个功能分支包含对同一组大型二进制文件的许多编辑;

  • 然后,在压缩和 merge (例如 merge 为单个提交)和删除此功能分支时,我们是否最终释放远程存储库上的存储?

(AFAIK git lfs prune 应该在不再使用二进制文件时释放本地存储库;当没有对这些旧版本二进制文件的引用时,远程存储库是否知道释放存储?)

最佳答案

Answers来自 git-lfs dev(强调我的):

Whether an LFS-capable Git hosting provider releases unused objects when they're no longer referenced is up to the individual hosting provider. GitHub doesn't by default; you'd need to write in to support and ask them to delete the objects for you, or if you're using a GHES instance, you'd want to ask your administrator to delete them. For other hosting providers, you should ask them.

关于git - squash commit 是否释放 Git LFS 存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58022433/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com