3

I use Git Bash to push my files to a git repository. It was fine when I did this:

heroku login
git add .

but I tried this:

`git push heroku master

the following error came up:

fatal: 'heroku' does not appear to be a git repository
fatal: could not read from remote repository

Please make sure you have correct access rights 
and the repository exists.

I have tried the following commands but they didn't work:

heroku keys:clear
heroku keys:add

I am new to Git and Heroku, any help would be appreciated.

4

1 回答 1

4

You haven't created a Heroku application yet.

You need to run the heroku create command, which will create a Heroku application, and add a git remote called heroku that points to your newly created application. After that git push heroku master should work fine.

于 2013-10-02T08:45:50.453 回答