如何快速转到远程分支

8
我有一个本地的master分支和远程的master分支production分支
我的master分支对应远程的master分支(类似于trunk,但没有经过完全测试以进行部署,因此我创建了一个名为production分支的分支,它始终落后于master分支)。
例如:git branch -a
* master
remotes/origin/master
remotes/origin/production

当我进行推送时,我总是会推送到master分支,但有时候我觉得质量已经足够好了,我希望production分支能够跟上master分支的变更,请问应该使用什么命令?


可能是重复问题:如何将本地Git分支推送到远程的主分支? - Felix Kling
3
我建议查阅git文档(http://git-scm.com/documentation),以便了解基础知识。 - Felix Kling
1个回答

3

正如其他人所 说的:

git push origin master:production

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接