远程 VSO git 存储库上的 Git 清理/垃圾收集 [英] Git cleanup/garbage collection on remote VSO git repository

查看:15
本文介绍了远程 VSO git 存储库上的 Git 清理/垃圾收集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试清理托管在 VSO/团队服务上的 git 存储库的历史记录.使用 bfggit-filter-branch 我们通过清理意外检查包文件夹等删除了大约 80% 的存储对象.

We are trying to clean up the history of a git repository hosted on VSO/team services. Using bfg and git-filter-branch we removed about ~80% of stored objects by cleaning accidentally checken in packages folders etc.

在成功重写存储库的 git 历史记录后,我们强制推送到 visualstudio.com,但该存储库的新克隆似乎表明实际上没有删除任何对象.我们发现了提示 此处there 表示 TFS 不对 git 对象执行任何垃圾回收.

After successfully rewriting the repository’s git history we force pushed to visualstudio.com but new clones of that repo seem to suggest that none of the objects were actually removed. We found hints here and there indicating that TFS does not perform any garbage collection on git objects.

对于 VSO 来说(仍然)是否也是如此?

Is that (still) true for VSO as well?

有任何改进计划吗?

删除并重新创建存储库可能是一种解决方法,但看起来并不那么优雅.

Deleting and recreating the repository would probably be a workaround but doesn’t seem that elegant.

推荐答案

是的,现在对于 VSTS (VSO) 仍然如此.但是服务器上的git gc在我们的backlog中,所以以后会改进.

Yes, it’s still true for VSTS (VSO) now. But git gc on the server is in our backlog, so it will be improved in the future.

现在的选项是重新创建一个新的存储库并再次推送(如您所述).

The option for now is recreating a new repo and push again (as you mentioned).

这篇关于远程 VSO git 存储库上的 Git 清理/垃圾收集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆