如何设置Sourcetree以部署到Heroku和Bitbucket? [英] How to setup Sourcetree to deploy to Heroku and Bitbucket?

查看:296
本文介绍了如何设置Sourcetree以部署到Heroku和Bitbucket?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个指向heroku的存储库。在可选扩展集成中,我选择了Bitbucket Server作为主机类型,主机URL设置为


  • 在下拉列表中选择远程,然后选择要推送的分支,然后单击确定。 //i.stack.imgur.com/c517X.pngrel =nofollow noreferrer>


  • 将流程重复到其他远程。 b




    I have setup a repository that points to heroku. In the "Optional Extended Integration" I have chosen "Bitbucket Server" as the host type, Host URL is set to "https://bitbucket.org" and the username is set to my username. Now whenever I commit a change to heroku I would like to commit that to Bitbucket as well. Unfortunately this does not seem to work with the setup I mentioned above. Is there anything I am doing wrong here? I am using SourceTree for Mac.

    解决方案

    If you need to get two remotes in sync, the most common way to achieve that is to push your changes to both:

    git commit -m <msg>
    git push origin <branch>
    git push bitbucket <branch>
    

    On SourceTree:

    • Click on "Push"

    • Select the remote on the dropdown, then select which branch you want to push, and click on OK.

    • Repeat the process to the other remote.

    Anternatives are:

    这篇关于如何设置Sourcetree以部署到Heroku和Bitbucket?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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