微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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这样的工具来清除历史记录中的大文件仍然是个好主意.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐