2012-01-23 5 views
0

Heroku에 원격 액세스를 설정 했으므로 Heroku에git push staging master으로 앱을 배포 할 수있었습니다. 나는 추락 무엇인지 모르겠지만, 지금은 이전 문장에서 명령을 실행할 때, 그래서 나는 오류 얻을 : 나는, 그냥 응용 프로그램 내 실제 버전을 delpoy 싶어 아무것도 병합을 원하지 않는Git을 통해 Heroku에 앱 배포

To [email protected]:mystagingapp.git 
! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to '[email protected]:staging-app.git' 
To prevent you from losing history, non-fast-forward updates were rejected 
Merge the remote changes (e.g. 'git pull') before pushing again. See the 
'Note about fast-forwards' section of 'git push --help' for details. 

을 localhost에서 Heroku에 이르기까지. 가장 쉬운 방법은 무엇입니까?

감사합니다.

답변

4

로컬로 체크인 한 내용을 영웅에게 푸시하고 싶다면 git push -f staging master을 수행 할 수 있습니다. 이로 인해 원격 저장소에서 커밋을 삭제할 수 있으므로 조심해서 사용하십시오.

관련 문제