尝试删除git历史记录中的文件时--mirror不能与refspecs组合

问题描述

我的gitlab存储库太大,因此我想删除gitlab历史记录中每个大于300KB的文件

我正在关注本教程https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html

我使用的命令:

git clone --bare --mirror https://my/gitlab/repo.git

cd my_repo

git filter-repo --strip-blobs-bigger-than 300K

git push origin --force 'refs/heads/*'

最后一条命令返回fatal: --mirror can't be combined with refspecs

我对git的经验并不丰富,但我认为我实际上只是按照说明进行操作, 它不起作用。知道为什么吗?

(存储库仅包含master分支,不受保护)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)