linux – 删除不在repo中的git LFS文件

上传了一些文件到git LFS,我超过了我的存储限制.现在,我上传文件没有显示在回购中,但我仍然超出了我的数据限制,我无法上传任何内容.

解决方法:

目前,这不可能通过lfs命令行.来自Atlassian Git LFS tutorial

The Git LFS command-line client doesn’t support pruning files from the server, so how you delete them depends on your hosting provider. In Bitbucket Cloud, you can view and delete Git LFS files via Repository Settings > Git LFS

GitHub甚至suggest重新创建了回购:

To remove Git LFS objects from a repository, delete and recreate the repository. When you delete a repository, any associated issues, stars, and forks are also deleted.

但是,在移动之前使用像BFG这样的工具来清除历史记录中的大文件仍然是个好主意.

相关文章

developer-roadmap —— 提供最全的开发者技术路线指南。前端...
一个极简的文件分享工具,无需注册且没有广告即可生成共享下...
收集 Github、Gitee优秀的开源项目,并进行归类整理。项目地...
大家好,我是 Java陈序员,我们有时会搭建一个属于自己的网站...
一个提供交互式的Web UI用于生成兼容MyBatisPlus框架的相关功...
大家好,我是 Java 陈序员。权限认证是我们日常开发绕不过的...