rsync git大仓库 [英] rsync git big repository

查看:62
本文介绍了rsync git大仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将git存储库克隆到我的本地计算机上,但是因为存储库太大,所以说" malloc失败".

I'm trying to clone a git repository onto my local machine, but it is saying "malloc failed" because the repository is too big.

有人知道我可以用来复制目录的确切rsync命令吗?还是有什么我可以做的克隆一个大的存储库?

Does anyone know the exact rsync command I could use to copy over the directory? or is there anything else I can do to clone a big repository?

我尝试了rsyncing,但它给了我以下错误:

I tried rsyncing but it gives me the following error:

Invalid command: 'rsync --server --sender -v . username/dir.git'
  You appear to be using ssh to clone a git:// URL.
  Make sure your core.gitProxy config option and the
  GIT_PROXY_COMMAND environment variable are NOT set.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]

尝试使用git clone时出现以下错误:

I get the following error when trying to use git clone:

remote: Counting objects: 52708, done.
remote: Compressing objects: 100% (52188/52188), done.
fatal: Out of memory, malloc failed (tried to allocate 1471836719 bytes)
fatal: index-pack failed

推荐答案

只需使用 git 的较新版本.较新的版本可以解决此问题.或者,如果您已经在使用新版本,请将 git config core.bigFileThreshold 设置为较小的大小.

Just use a newer version of git. Newer version can handle this. or, if you are using new version already, set git config core.bigFileThreshold to a smaller size.

这篇关于rsync git大仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆