Reputation: 1587
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.
Upvotes: 3
Views: 7465
Reputation: 30043
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.
Upvotes: 4