से मेल नहीं खाता है, मुझे carboncake
नामक रेपो बनाने की आवश्यकता है।गिट त्रुटि: src refspec मास्टर किसी भी
मैं इस कोशिश की:
क्लोंड अपने स्थानीय मशीन
$ git clone [email protected]:repositories/gitosis-admin.git
$ cd gitosis-admin
$ vim gitosis.conf
जोड़ा गया फ़ाइल
[gitosis]
[group team]
writable = sweepshots
members = git_id_rsa
[group gitosis-admin]
writable = gitosis-admin
members = git_id_rsa
[repo carboncake]
description = A brand new app by Mithun.
owner = Mithun P
[group carboncake]
writable = myappname
members = mithun @core
के अंत तक [repo carboncake]
और [group carboncake]
अनुभाग के लिए gitosis-व्यवस्थापक भंडार फिर पुट्टी द्वारा उत्पन्न पब कुंजी फ़ाइल की प्रतिलिपि बनाई गई (मैं विंडोज के लिए गिट बेसग का उपयोग कर रहा हूं):
$cp /some/where/mithun.pub keydir/mithun.pub
निष्पादित निम्न कमांड:
$ git add gitosis.conf keydir/mithun.pub
$ git commit -m "Added 'carboncake' repository and 'mithun' user."
$ git pull --rebase
$ git push
लेकिन यह मेरे सर्वर में किसी भी carboncake.git नहीं बनाता है।
सर्वर पर निम्न कमांड निष्पादित:
तो मैं इस का पालन किया
मैं चेकआउट करने की कोशिश की/से नए भंडार क्लोन:
$ su gitosis
$ git init --bare /srv/gitosis/repositories/carboncake.git
यहाँ मेरी समस्या है मेरी स्थानीय मशीन
$ mkdir carboncake
$ cd carboncake
$ git init
$ touch a_text_file.txt
$ git add a_text_file.txt
$ git remote add origin [email protected]:repositories/carboncake.git
$ git push origin master
कौन सा त्रुटि दिखाई:
error: src refspec master does not match any.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:repositories/carboncake.git'
जब मैं करने की कोशिश की git push origin HEAD:master
यह त्रुटि दिखाई:
error: src refspec HEAD does not match any.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:repositories/carboncake.git'
जब मैं करने की कोशिश की git push origin master:refs/heads/master
यह त्रुटि दिखाई: पर
error: src refspec master does not match any.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:repositories/carboncake.git'
git show-ref
स्थानीय मशीन कुछ भी प्रदर्शित नहीं करती
सर्वर पर /srv/gitosis/repositories/carboncake.git/refs/heads/
निर्देशिका भी खाली है।
मैं इसे कैसे ठीक कर सकता हूं?
@ डैनी [कुछ महीनों में पहली बार एक नया भंडार बनाया गया ...] (https://www.youtube.com/watch?v=t2F1rFmyQmY) – Droogans
'git' में कुछ भयानक त्रुटि संदेश हैं। –
बिल्कुल सही, यह मेरे साथ एक ही त्रुटि संदेश के साथ हुआ और मुझे एहसास हुआ कि मैं स्टेजिंग और काम नहीं कर रहा हूं। इसका मतलब है कि मैंने इसे अभी ऊपर उठाया है, एक ऊपर। – blakroku