从不同的遥控器推送到Heroku

时间:2017-07-12 00:53:38

标签: heroku github bitbucket

到目前为止,我正在使用github并推送到Heroku。我有这样的事情,当我做git push heroku master时,它推送到Heroku,我认为起源遥远。

heroku  https://git.heroku.com/gentle-dawn-61312.git (fetch)
heroku  https://git.heroku.com/gentle-dawn-61312.git (push)
origin  git@github.com:Igor-Vuk/App.git (fetch)
origin  git@github.com:Igor-Vuk/rApp.git (push)

现在我添加了bitbucket,我也部署了我的代码,所以现在我有类似的东西。

bitbucket       ssh://git@bitbucket.org/Igor-Vuk/App.git (fetch)
bitbucket       ssh://git@bitbucket.org/Igor-Vuk/App.git (push)
heroku  https://git.heroku.com/gentle-dawn-61312.git (fetch)
heroku  https://git.heroku.com/gentle-dawn-61312.git (push)
origin  git@github.com:Igor-Vuk/App.git (fetch)
origin  git@github.com:Igor-Vuk/App.git (push)

我如何推送到heroku现在代码部署到bitbucket?

1 个答案:

答案 0 :(得分:1)

这是同一个命令。如果你在你的系统上运行git push heroku master,那么推送就会在你的系统上发出并直接进入Heroku而不涉及Bitbucket或GitHub。