我想將git存儲庫克隆到本地計算機上,但它說「malloc failed
」,因爲存儲庫太大。rsync git big repository
有誰知道我可以用來複制目錄的確切rsync命令?或者還有什麼我可以做的克隆大型資料庫?
我試圖rsyncing但它給我下面的錯誤:
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克隆時,我得到了以下錯誤:
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 config --global http.postBuffer 524288000'之後再次嘗試你的克隆命令,如http://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly -while-git的克隆/ 6849424#6849424? – VonC
@VonC - 你不應該問首先使用哪種協議嗎?如果正在使用ssh/git,那麼設置無關緊要? – manojlds
你真的使用'rsync'來克隆它嗎? :? – KingCrunch