简体   繁体   English

Gitlab 仓库镜像到 Github

[英]Gitlab repositry mirror to Github

  • I want to create mirror repository from Gitlab to Github, but i encountered an error: Larger file than Github allow, GH001: Larger files detected ,i was try using git filter-branch to remove file larger size in all commit, rewrite commit history,success but after that, i get error (in image)我想创建从 Gitlab 到 Github 的镜像存储库,但遇到错误:文件比 Github 允许的大,GH001:检测到更大的文件,我尝试使用git filter-branch在所有提交中删除更大的文件,重写提交历史,成功,但在那之后,我得到了错误(在图像中)
  • Any idea or keyword, please give me.Thanks!任何想法或关键字,请给我。谢谢!

错误镜像仓库 Gitlab

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM