2010-11-09 43 views
1

我正在將git存儲庫與heroku服務器一起使用。 我想提交我在這個我在Heroku服務器上的更改,我運行命令, git add。
git的承諾-m '最新更新'
混帳推的Heroku錯誤:鉤子/預接收退出,錯誤代碼爲2

它給我下面的錯誤,
! [遠程拒絕]主 - >主(預接收鉤拒絕) 錯誤:鉤子/預接收退出,錯誤代碼爲2 錯誤:無法將某些參考推送到'[email protected]:deliverydashboard.git'

請給解決方案。

+0

會http://stackoverflow.com/questions/1974257/push-rails-app-to-heroku幫助?或http://stackoverflow.com/questions/3951964/git-push-heroku-master-doesnt-seem-to-work? – VonC 2010-11-09 06:36:05

回答

0

這意味着你還沒有推動主人。

如果您還沒有回購:

git init 
git add . 
git commit -m 'master' 

然後在Heroku上建立應用程式:

heroku create 
git push heroku master 

這將解決這個問題。