如何删除由git-lfs跟踪的文件并释放存储配额? [英] How to delete a file tracked by git-lfs and release the storage quota?

查看:4130
本文介绍了如何删除由git-lfs跟踪的文件并释放存储配额?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何删除不再使用的文件并将存储释放回github lfs配额?



是否删除git历史记录中的文件参考点在这种情况下工作?

解决方案

目前似乎没有一种很好的从 GIT-LFS 。 GitHub的目前的建议是使用一个工具,称为的BFG 完全剥离的一切存在文件从你的回购。



假如git的垃圾收集由Github下次运行,它可能会从lfs存储中删除。

欲了解更多信息,请参阅 https://help.github.com/articles/working-with-large-files/


How to delete a never-use-again file and release the storage back to the github lfs quota?

Does deleting the reference point of the file in git history work in this situation?

解决方案

There doesn't currently appear to be a great way of removing large assets from git-lfs. GitHub's current suggestion is to use a tool called The BFG to completely strip all existence of the file from your repo.

Presumably it'll then be removed from the lfs storage when git's garbage collection is next run by Github.

For more info see https://help.github.com/articles/working-with-large-files/

这篇关于如何删除由git-lfs跟踪的文件并释放存储配额?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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