如何推动“发展”分支到远程“起源”? [英] How to push the "develop" branch to the remote "origin"?

查看:111
本文介绍了如何推动“发展”分支到远程“起源”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我执行 git flow init 时,它会创建一个 master develop 分支机构。当我添加远程的时候,我做了 git remote add origin git@github.com:NewB / our-repo.git 。现在我有我的本地仓库初始化git流,并添加了远程仓库。在我完成 git push -u origin master 之后,我的 master 在我的原点,但不是开发分支。对于 develop 分支,有没有 git flow publish ?我看到的是 功能版本的发布分支机构。 git-flow是否希望我使用常规git并执行 git push origin develop

When I do git flow init it creates a master and develop branches. When I add the remote I do git remote add origin git@github.com:NewB/our-repo.git. Now I have git flow initialized on my local repo and I have the remote repo added. After I do git push -u origin master I have master in my origin but not the develop branch. Is there a git flow publish for the develop branch? All I'm seeing are publish for feature or release branches. Does git-flow want me to just use regular git and do git push origin develop?

推荐答案


git-flow是否希望我使用常规git并执行 git push origin develop

是的,这就是你要做的。简单地使用常规的git命令。

Yes, that's what you do. Simply use the regular git command.

我假设这个设计选择的原因是:

develop分支只创建一次。无需辅助命令发布它。

功能分支始终创建。在这里,一个辅助命令是很有帮助的。

I assume the reason for this design choice is:
The develop branch is created only once. No need for a helper command to publish it.
Feature branches get created all the time. Here, a helper command is, well..., helpful.

这篇关于如何推动“发展”分支到远程“起源”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆