如何快进远程分支

时间:2012-05-15 17:31:21

标签: git version-control

我有一个本地master branch和远程masterproduction分支

我的master对应于远程master(就像主干一样,但没有经过全面的部署测试,所以我创建了一个名为production的分支,它始终位于master之后{1}})

e.g。 git branch -a

* master
remotes/origin/master
remotes/origin/production

当我推送时,我会一直推到master,但有时,我觉得质量已经足够好了,我希望production分支能够赶上master中的变化我应该使用什么命令?

1 个答案:

答案 0 :(得分:3)

正如其他人have stated

git push origin master:production
相关问题