2012-10-12 16 views
14

Yerel makinemde bir Facebook uygulaması var ve bir başka Heroku ile oluşturuldu (Heroku uygulamasında kod, Heroku tarafından otomatik olarak oluşturuldu). Heroku uygulamasındaki kodu tamamen yerel makinemdeki kodla değiştirmek istiyorum. Kodun bulunduğu makinemdeki dizinde bir git deposu başlattım ve URL'yi git remote add origin [email protected]:my-fb-app.git ile ayarladım. Ben git push origin master yazdığınızda Ancak, ben alıyorum:Bir git deposundaki kodun tamamen nasıl değiştirileceği

To [email protected]:my-fb-app.git 
! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to '[email protected]:blooming-cove-5867.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. 

Açıkçası, bu doğru bir yaklaşım değildir. Bunu yapmaya nasıl devam etmeliyim?

cevap

İlgili konular