Heroku-git推送

Heroku-git推送,heroku,Heroku,谁能解释一下这些有什么问题吗 mhsjaber:~/workspace/newsite (master) $ heroku keys:add ? Which SSH key would you like to upload? /home/ubuntu/.ssh/id_rsa.pub Uploading /home/ubuntu/.ssh/id_rsa.pub SSH key... done mhsjaber:~/workspace/newsite (master) $ heroku creat

谁能解释一下这些有什么问题吗

mhsjaber:~/workspace/newsite (master) $ heroku keys:add
? Which SSH key would you like to upload? /home/ubuntu/.ssh/id_rsa.pub
Uploading /home/ubuntu/.ssh/id_rsa.pub SSH key... done

mhsjaber:~/workspace/newsite (master) $ heroku create
Creating app... done, ⬢ ancient-island-20017
https://ancient-island-20017.herokuapp.com/ | https://git.heroku.com/ancient-island-20017.git

mhsjaber:~/workspace/newsite (master) $ git push heroku
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
Everything up-to-date

您必须先添加一些内容才能推送到heroku服务器。由于您的存储库已经在heroku上创建,因此,您必须在其上添加应用程序,以便按照以下步骤进行操作

(1)
heroku登录

(2)
git init

(3)
git添加。

(4)
git提交-am“comment”

(5)
git推送heroku主机


在您的例子中,您没有在git push命令中添加master,这让heroku感到困惑

您必须先添加一些内容才能推送到heroku服务器。由于您的存储库已经在heroku上创建,因此,您必须在其上添加应用程序,以便按照以下步骤进行操作

(1)
heroku登录

(2)
git init

(3)
git添加。

(4)
git提交-am“comment”

(5)
git推送heroku主机


在您的例子中,您没有在git push命令中添加master,这让heroku感到困惑

我的回答对你有帮助吗?我的回答对你有帮助吗?