Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 通过HTTP推送到Heroku_Git_Heroku_Continuous Integration - Fatal编程技术网

Git 通过HTTP推送到Heroku

Git 通过HTTP推送到Heroku,git,heroku,continuous-integration,Git,Heroku,Continuous Integration,我正在尝试使用github操作部署到Heroku 我刚刚发现我可以通过这条线来推送我的源代码 git推送https://heroku:$HEROKU_API_TOKEN@git.heroku.com/$HEROKU_APP_NAME.git来源/主机:主机 我试图找到有关这种方法的参考资料,但在Heroku的官方文件中找不到 这怎么可能呢?可能没有文档记录,因为Heroku希望您使用HerokuCLI。但它是有效的,因为这是它内部实现的方式。从git remote-v开始列出带有URL的远程设备

我正在尝试使用github操作部署到Heroku

我刚刚发现我可以通过这条线来推送我的源代码

git推送https://heroku:$HEROKU_API_TOKEN@git.heroku.com/$HEROKU_APP_NAME.git来源/主机:主机

我试图找到有关这种方法的参考资料,但在Heroku的官方文件中找不到


这怎么可能呢?

可能没有文档记录,因为Heroku希望您使用
Heroku
CLI。但它是有效的,因为这是它内部实现的方式。从
git remote-v
开始列出带有URL的远程设备。Heroku将凭据存储在
~/.netrc
:。它准确地存储了:登录和身份验证令牌。@谢谢您的解释!我应该查一下那个文件,但现在一切都说得通了。