में विफल रहता है मेरे पास सीमित स्मृति वाले सर्वर पर एक गिट रिपोजिटरी है। जब मैं सर्वर मैं निम्न त्रुटिगिट भंडार का पुनर्विक्रय
[email protected]:$ git clone ssh://[email protected]/home/hemi/repos/articles
Initialized empty Git repository in /home/hemi/Skrivebord/articles/.git/
[email protected]'s password:
remote: Counting objects: 666, done.
remote: warning: suboptimal pack - out of memory
remote: fatal: Out of memory, malloc failed
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
[email protected]:$
इस त्रुटि मैं मूल भंडार repack की कोशिश की है संभालने के लिए मिल से एक मौजूदा भंडार क्लोन करने की कोशिश (this forum post के अनुसार)। लेकिन भंडार को दोबारा बदलने के बजाय यह वर्णन करता है कि "गिट पैक-ऑब्जेक्ट्स" कमांड का उपयोग कैसे करें।
[email protected]:~/repos/articles$ git repack -a -d --window-memory 10m --max-pack-size 100m
usage: git pack-objects [{ -q | --progress | --all-progress }]
[--all-progress-implied]
[--max-pack-size=N] [--local] [--incremental]
[--window=N] [--window-memory=N] [--depth=N]
[--no-reuse-delta] [--no-reuse-object] [--delta-base-offset]
[--threads=N] [--non-empty] [--revs [--unpacked | --all]*]
[--reflog] [--stdout | base-name] [--include-tag]
[--keep-unreachable | --unpack-unreachable
[<ref-list | <object-list]
गिट 1.6.5.7 सर्वर पर स्थापित है।
कॉन्फ़िगरेशन विकल्पों के लिए धन्यवाद, मुझे इससे पहले पता नहीं था। भंडार में पीडीएफ फ़ाइलों का एक बड़ा सेट होता है। भंडार का कुल आकार (.git निर्देशिका और ट्रैक की गई फ़ाइलों सहित) 1.1 जीबी अनुमोदित है। तो मुझे लगता है कि यह एक बड़ी भंडार है ;-) – midtiby
@ मार्क लॉन्गियर: आपने मेरा दिन सर बचाया! मैं स्टोर में भागने वाला था और कुछ रैम अपग्रेड खरीद रहा था: डी –
@ मार्क लॉन्गियर: ग्रेट उत्तर !!! इस तरह की एक उपयोगी जानकारी के लिए धन्यवाद – nish