मैंने गिटोलाइट (स्थानीय रूप से अब प्रयोग करने के लिए) स्थापित किया है और ऐसा लगता है कि नए भंडार एक गिट क्लोन के बाद डिफ़ॉल्ट रूप से रिमोट को ट्रैक नहीं कर रहे हैं। अगर मुझे सही याद है, जब मैं github.com से एक भंडार क्लोन करता हूं, तो यह पहले से ही पुश करने और खींचने में सक्षम है।गिटोलाइट: नए भंडार के लिए डिफ़ॉल्ट रिमोट
$ git clone [email protected]:sandbox
Cloning into sandbox...
warning: You appear to have cloned an empty repository.
$ echo "A" > README
$ git add README
$ git commit README -m 'test'
$ git push
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:sandbox'
जब मैं धक्का करने की कोशिश को स्पष्ट रूप से सब कुछ काम करता है::
$ git push origin master
Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 426 bytes, done.
Total 6 (delta 0), reused 0 (delta 0)
To [email protected]:sandbox
* [new branch] master -> master
इस अतिरिक्त कदम वास्तव में जरूरत है
यहाँ मैं क्या करने की कोशिश की है? डिफ़ॉल्ट रूप से सेट किया जा सकता है? गीथूब पर यह है, है ना?
आप
जैसा कि मैं समझता हूं, नए भंडार/सर्वर के लिए अब गिटोसिस की अनुशंसा नहीं की जाती है। बेहतर गिटोलाइट का उपयोग करें। –
ओह, मैं वास्तव में गिटोलाइट का उपयोग कर रहा हूं, लेकिन सवाल में गलती की। अब तय है। – stivlo