首页 > 解决方案 > 使用 Git 将代码推送到 Heroku 时出错

问题描述

运行后出现此错误

git push heroku master命令

致命:无法访问“https://git.heroku.com/afternoon-sands-50963.git/”:无法连接到 git.heroku.com 端口 443:连接被拒绝

标签: githeroku

解决方案


尝试删除您的 Heroku 远程引用,然后重新添加它并添加密钥。使用以下命令:

git remote rm heroku
git remote add heroku git@heroku.com:afternoon-sands-50963.git
heroku keys:add

推荐阅读