2016-06-14 7 views
1

誰でもこれらの問題を説明できますか?Heroku - git push

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 
+0

私の回答はお役に立ちましたか? –

答えて

0

あなたはherokuサーバーに最初に何かを追加する必要があります。あなたのリポジトリが英雄ですでに作成されているので、以下の手順に従うために、あなたのアプリケーションを追加する必要があります。あなたのケースで

(1)heroku login

(2)git init

(3)git add .

(4)git commit -am "comment"

(5)git push heroku master

あなたが混乱しましたあなたのgit pushコマンドでマスターを追加しないことによって、heroku。