我想在本地机器上克隆一个Git仓库,但它说"malloc failed
",因为仓库太大了。
有人知道我可以使用哪个精确的rsync命令来复制目录吗?或者还有其他什么方法可以克隆大型仓库吗?
我尝试过rsync,但是它给了我以下错误:
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时,出现以下错误:
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 clone
命令前,尝试先执行git config --global http.postBuffer 524288000
命令,详情请见https://dev59.com/e2w15IYBdhLWcg3wFHtZ#6849424。 - VonCrsync
克隆它吗? :? - KingCrunchpostBuffer
大小的三倍! - VonC