开发者

Error: hooks/pre-receive exited with error code 2

I am using git repository with heroku server. I want to commit my changes on heroku server for this i run the command, git add .

git commit -m 'latest updates'

git push heroku

It give me following error,

! [remote rejected] master -> master (pre-receive hook declined) error: hooks/pre-receive exited with error code 2 error: failed to push some refs to 'git@heroku.com:deliverydashboard.git'

Please give solution 开发者_如何转开发over it.


This means you have not pushed the master yet.

If you do not already have a repo:

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

Then create your app on heroku:

heroku create
git push heroku master

That will fix the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜