2013-01-21 15 views
6

Herhangi bir yardım büyük olurdu. Şimdiden teşekkürler!git itme ana master başarısız olur ve hata verir: src refspec HEAD herhangi bir eşleşmiyor

Git ve ssh anahtar kurulumunu yükledim, ancak bu garip hatayı alıyorum. Ben itti önce

[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

Boş bir deposu github'a aktararak ne yapmaya çalışıyorsunuz? –

cevap

13

yüzden

git add . 

git commit -am 'initial commit' 

yapmadı.

:/

+1

+1, bu hatayı daha önce yeni bir repoya bastığınızda ikinci kez googled ettikten sonra, her zaman zorunlu olan "git commit -m" ilk işlemini "unutmuştum. – ojdo

İlgili konular