git - 如何快进远程分支

标签 git version-control

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

我的 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/

相关文章:

c# - 以编程方式检测从 C# 代码 checkout 的当前 git 分支

xcode - .gitignore 文件,我应该把它放在我的 xcode 项目的什么地方?

git - 克隆 Azure git 存储库报告 "could not resolve host"

git error unpack failed missing blob on git review to gerrit

eclipse - TFS 服务 - 它可以与 Eclipse 和 Git 一起使用吗

svn - 需要在 Subversion 中恢复已删除的分支

git - `git reset --hard master` 和 `git reset --hard origin/master` 有什么区别?

git - 删除远程分支不会从 GitHub 中删除

git - 如何删除第一次提交时意外添加的一些文件?

git - 在没有 IDE 集成的情况下如何使用源代码管理?