[英]Gitlab repositry mirror to Github
First, you can use the new git filter-repo
, which will replace the old git filter-branch
or BFG .首先,您可以使用新的git filter-repo
,它将替换旧的git filter-branch
或 BFG 。
Stripping large/big files is easy剥离大/大文件很容易
git filter-repo --strip-blobs-bigger-than 10M
Second, git filter-branch
/ git filter-repo
is a local operation: you still need to force push (git push --force --mirror) to GitLab, in order for your mirror operation to reflect the new repository state (one without large files)其次, git filter-branch
/ git filter-repo
是本地操作:你仍然需要强制推送(git push --force --mirror)到 GitLab,以便你的镜像操作反映新的存储库状态(一个没有大文件)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.