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 herokuIt 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.
精彩评论