我有一个本地 master 分支
和远程 master
和 production
分支
我的 master
对应于远程 master
(就像主干一样,但没有完全测试部署,所以我创建了一个名为 production
总是在 master
之后)
例如git branch -a
* master
remotes/origin/master
remotes/origin/production
当我推送的时候,我总是推送到master
,但有时,我觉得质量已经足够好了,我希望production
分支 catch master
的变化,我应该使用什么命令?
最佳答案
和其他人一样have stated :
git push origin master:production
关于git - 如何快进远程分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10605895/