gpt4 book ai didi

git - 从 github 推送到 heroku,无需下载 repo

转载 作者:IT王子 更新时间:2023-10-29 00:53:41 26 4
gpt4 key购买 nike

我有一个要推送到 heroku 节点的 github 存储库。第 3 位主持人将协调此事。由于我要大规模执行此操作,因此我想避免必须将存储库的内容下载到第三台主机上。我该怎么做?

最佳答案

你不能直接从 Github 推送到 Heroku。

您将不得不使用第三个主机来协调推送。这可以从 Github 后接收 Hook 中触发。

要直接同步,请使用类似的东西:

git remote add github git@github.com:user/repo.git
git remote add heroku git@heroku.com:app.git

git push heroku refs/remotes/github/master:refs/heads/master

关于git - 从 github 推送到 heroku,无需下载 repo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3324586/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com