Heroku通过HTTPS推送 [英] Heroku push via HTTPS

查看:109
本文介绍了Heroku通过HTTPS推送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图执行

  git push heroku master 

但是我正在使用的PC有一些端口被阻塞,所以我不能通过<$ c $ push c> git@heroku.com:projectname.git 远程。



如何通过 HTTPS 进行推送?我知道这是可能的,因为我可以通过HTTPS克隆,拉取和推送任何项目。



我试图手动更改 git@heroku.com: projectname.git https://git.heroku.com/projectname.git 没有成功。

解决方案

所有推送到Heroku git都通过SSH。注意,如果没有SSH,一些其他的heroku任务也是不可能的。

>

I'm trying to perform

git push heroku master

But the PC i am working on has some ports blocked so i can not push via git@heroku.com:projectname.git remote.

How can i push via HTTPS? I know it is possible since i can clone, pull and push via HTTPS any projects.

I tried to manually change git@heroku.com:projectname.git to https://git.heroku.com/projectname.git with no success.

解决方案

All pushes to Heroku git are over SSH. The only way you'll be able to push is over SSH and port 22.

Note that without SSH some of the other heroku tasks will be impossible also.

这篇关于Heroku通过HTTPS推送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆