2014-04-25 6 views
6

"Bir README ile repo başlat" Ben README seçeneğiyle benim GitHub depo başlatıldı.Sayı yerine lokal bir <code>README</code> yapma dışında <a href="https://help.github.com/articles/create-a-repo" rel="noreferrer">the instructions in the GitHub documentation</a> kullanarak bir GitHub depo oluşturmaya çalıştınız seçenek

kirby:cs61as_SCIP_schython \**user**$ git push origin master 
https://github.com/chris-marie/cs61as_SICP_schython.git 
! [rejected] 
master -> master (fetch first) error: failed to push some refs to 
'https://github.com/chris-marie/cs61as_SICP_schython.git' hint: 
Updates were rejected because the remote contains work that you do 
hint: not have locally. This is usually caused by another repository 
pushing hint: to the same ref. You may want to first merge the remote 
changes (e.g., hint: 'git pull') before pushing again. hint: See the 
'Note about fast-forwards' in 'git push --help' for details. 

Ben de depoyu çekemezssin yüzden ben yaratmıştı README dosyayı ekleyerek ve işlediği, indirme elle çalıştı: itmeye çalışırken sonra olsa da, bu hatayı alıyorum ben tam anlamıyorum Hemen hemen tekrar itmeye çalıştı ve yeni bir hata var: dört soru ile

kirby:cs61as_SCIP_schython \**user**$ git push origin master 
https://github.com/chris-marie/cs61as_SICP_schython.git 
! [rejected] 
master -> master (non-fast-forward) error: failed to push some refs to 
'https://github.com/chris-marie/cs61as_SICP_schython.git' hint: 
Updates were rejected because the tip of your current branch is behind 
hint: its remote counterpart. Merge the remote changes (e.g. 'git 
pull') hint: before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

Bu beni bırakır:

1 .. Niçin bir README ile GitHub'dan uzak bir depo başlatmak için çalışmaz, ve sonra bağlanmayı deneyin Önceden var olan bir yerel depo ile GitHub deposu?

  1. Bu hatayı düzeltmeye çalıştığımda neden çekemiyorum?

  2. README adresini GitHub'dan yerel depoma el ile ekledikten sonra neden hala GitHub uzaktan kumandası ile bağlantıyı başlatamıyorum ve başlatılamıyorum?

  3. Nasıl başlatıldı README ile GitHub depo oluşturmak ve bu hataları neden olmadan yerel repo onu bağlarım? Bunu kurarken uzaktan birine README eklendi çünkü

+0

Repo'yu çekemediğini söylediğinizde, ne gibi bir hata verdi? – Leigh

+0

Dedi ki: 'ölümcül: Geçersiz refspec' https: // github.com/chris-marie/cs61as_SICP_schython.git '. –

+0

Bunu ayarladığınızda, başlangıçta 'git clone'unu veya' git init' komutunu kullandınız ve sonra 'git remote add ...' komutunu kullandınız mı? – Leigh

cevap

İlgili konular