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

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

问题描述

我们正在尝试清理VSO/团队服务上托管的git存储库的历史记录. 使用 bfg

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,但是该存储库的新克隆似乎表明实际上没有删除任何对象. 我们发现了,表明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仍在我们的待办事项中,因此将来会有所改进.

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.

目前的选择是重新创建一个新的repo并再次推送(如您所述).

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

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

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