如果我已经把我的改变这里的github /开发,现在 我要推他们到舞台/主?
git push stage develop:master -f
上面的命令将迫使推动当地发展的分支为主,同Heroku从主编译它的蛞蝓,你会看到在您的应用程序的变化。当您想要测试对特定分支的更改而不合并到原始主控时,这可能很有用。
不过,我会建议你一个不同的工作流程。创建一个新分支以将更改推送到登台服务器。现在说它的当前QA。在部署之前从
master,currentQA和您的分支拉任何更改。
例如。在工作中,我们有一个当前的QA分支。无论何时我们需要在分段上部署任何东西时,我们都会将分支合并到currentQA,并强制将它作为主分段进行分段。
比方说,我工作的分支上是someImportantFix:
#push the changes of my branch to origin
git push origin someImportantFix
#switch to currentQA
git checkout currentQA
#pull any changes in the master branch
git pull origin master
#pull any changes in the currentQA branch
git pull origin currentQA
#pull the changes from my branch
git pull origin someImportantFix
#push the changes to origin
git push origin currentQA
#force push and deploy on heroku
git push staging currentQA:master -f
这可能看起来繁琐,但有很大帮助,当你与一个团队中工作。
我们有我们的项目三个遥控器:
起源 - github上
分期 - 分期的Heroku
生产 - 生产的Heroku
我们只部署掌握舞台和制作的分支。
如果我是来自原始(Heroku)树,该怎么办?另外,如果我已经将我的更改推送到github/develop,现在我想将他们推到舞台/主控台上呢? – 2014-09-06 21:01:21