If you are in a situation where you got following error:
git push [remote name] master
Unable to negotiate a key exchange method
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Check your remote repository path of heroku app by using command
git remote -v | grep [remote-name]
Output of command will give you git path of your repository
[remote-name] git@heroku.com:[heroku-app-name].git (fetch)
[remote-name] git@heroku.com:[heroku-app-name].git (push)
Change it to https path as following
Then again try to push your code to Heroku app.
[remote-name] https://git.heroku.com/[heroku-app-name].git (fetch)
[remote-name] https://git.heroku.com/[heroku-app-name].git (push)
Then again try to push your code to Heroku app.
Your code will be deployed , Happy Heroku Deployment.
No comments:
Post a Comment