2013-01-21 10 views
6

Jede Hilfe wäre toll. Danke im Voraus!git push Herkunft Master schlägt fehl und gibt Fehler: src refspec HEAD passt nicht zu

Ich habe Git installiert, und die SSH-Taste Setup, aber ich bekomme diesen seltsamen Fehler.

[email protected]:~/Desktop$ cd exercise/ 
[email protected]:~/Desktop/exercise$ git init 
Initialized empty Git repository in /Users/admin/Desktop/exercise/.git/ 
[email protected]:~/Desktop/exercise$ git remote add origin [email protected]:pavankat/exercise.git 
[email protected]:~/Desktop/exercise$ git push origin master 
error: src refspec master does not match any. 
error: failed to push some refs to '[email protected]:pavankat/exercise.git' 
[email protected]:~/Desktop/exercise$ git push [email protected]:pavankat/exercise.git HEAD:test 
fatal: remote part of refspec is not a valid name in/
[email protected]:~/Desktop/exercise$ git push [email protected]:pavankat/exercise.git HEAD:test 
error: src refspec HEAD does not match any. 
error: failed to push some refs to '[email protected]:pavankat/exercise.git' 
[email protected]:~/Desktop/exercise$ 
+0

Was möchten Sie erreichen, indem Sie ein leeres Repository auf github schieben? –

Antwort

13

so dass ich nicht

git add . 

git commit -am 'initial commit' 

bevor ich geschoben.

:/

+1

+1 nachdem ich diesen Fehler bereits zum zweiten Mal gegoogelt habe, wenn ich einen frischen Repo gepushed habe, immer den obligatorischen 'git commit -m 'initial commit" 'vergessen. – ojdo

Verwandte Themen