ローカル開発環境がbitbucketと連携していて、後から、herokuにデプロイしようとherokuの環境を準備しています。
諸々インストールした後に、Herokuの手順に沿って、
Install the Heroku Toolbelt
Download and install the Heroku Toolbelt or learn more about the Heroku Command Line Interface.
If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key.
$ heroku login
Create a new Git repositoryInitialize a git repository in a new or existing directory
$ cd my-project/
$ git init
$ heroku git:remote -a ********
Deploy your applicationCommit your code to the repository and deploy it to Heroku using Git.
$ git add .
$ git commit -am "make it better"
$ git push heroku master
と、Herokuの手順通りにしているのですが、pushしようとすると、
以下のエラーが出ます。
git push heroku master
error: src refspec master does not match any.
エラー内容でググると、コミットしていないからと出るのですが、コミットはしています。
何か他に原因が考えられるでしょうか?
よろしくおねがいします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。