Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.4k points)

I have made a react app and deployed that on Heroku using git( using https). Now I have made some changes in that react app. I am able to push my changes in the git but I am not able to push those changes to Heroku. I used this command

git push heroku master

The error which I am getting is:

[email protected]: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

1 Answer

0 votes
by (12.4k points)

Here, First, upload your key to Heroku using this command: 

heroku keys:add ~/.ssh/

or you can add one automatically, by using:

heroku keys:add

Want to learn more about DevOps? Check out: DevOps Course

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.5k answers


108k users

Browse Categories