我应该在使用 git 流程完成功能后进行 git 推送吗?
should I make a git push after finish the feature using git flow?
我正在使用 bitbucket 并使用 gitflow 进行管理(或尝试使用)。
我的问题是:我创建了我的功能并做了
git-flow feature finish name
所以,在我阅读的教程中,我必须这样做
git push origin :feature/name
在此之前,在 bitbucket 中我可以看到分支,在执行 git push origin 之后它被删除了,为什么?
完成该功能后,我是否应该运行推送原始命令?
Before that, at the bitbucket I could see the branch, after do the git push origin it was deleted, why?
命令git-flow feature finish name
删除你电脑上的分支,bitbucket会在你推送新的更新(删除分支)到bitbucket后删除该分支。
After finish the feature , should I run that push origin command?
基本上,是的,你应该这样做。但是,如果你想保留 bitbucket 上的分支作为备份,你可以跳过这一步,当你确定不再需要它时删除它。
更新评论中的新问题:
where does that code goes? is it merged with the HEAD revision?
是的,当你"finish"一个特征时,分支被合并到develop
,合并后feature/
分支将被删除。之后在 develop 的 HEAD 处获取代码。
when you use git-flow, the develop and the other branches are created locally only?
是的。除非你将它们推送到服务器(bitbucket、github 或其他)
if I make a git-flow feature finish it was not deleted from bitbucket, what you mean that it is deleted after I make a new update? you mean if I create another feature?
我的意思是当您执行 git push origin :feature/name
时,您将更新(将功能分支合并为开发分支)推送到 bitbucket。并且由于update合并到develop后删除了分支,bitbucket在拿到update后删除了server上的branch
lets say the first developer who uses git-flow commits the branches to the remote server and does not delete it, the release 0.1 will be there and the 0.2 and so on, right? any idea how to do that?
是的。你只需要在本地做git-flow逻辑,不要把删除分支的更新推送到服务器。
and , let say the first developer using gitflow commits the develop branch to the head master, is there any way to make all new developers fork from that branch?
请其他开发人员从 bitbucket 中拉出每个分支,然后从您想要的分支中分叉出来。 git-flow
只是一种使用 git 的哲学。所有 feature/
、release/
事物都是具有模式名称的正常分支。像正常的git分支一样对待它们,不要想太多。
我正在使用 bitbucket 并使用 gitflow 进行管理(或尝试使用)。
我的问题是:我创建了我的功能并做了
git-flow feature finish name
所以,在我阅读的教程中,我必须这样做
git push origin :feature/name
在此之前,在 bitbucket 中我可以看到分支,在执行 git push origin 之后它被删除了,为什么?
完成该功能后,我是否应该运行推送原始命令?
Before that, at the bitbucket I could see the branch, after do the git push origin it was deleted, why?
命令git-flow feature finish name
删除你电脑上的分支,bitbucket会在你推送新的更新(删除分支)到bitbucket后删除该分支。
After finish the feature , should I run that push origin command?
基本上,是的,你应该这样做。但是,如果你想保留 bitbucket 上的分支作为备份,你可以跳过这一步,当你确定不再需要它时删除它。
更新评论中的新问题:
where does that code goes? is it merged with the HEAD revision?
是的,当你"finish"一个特征时,分支被合并到develop
,合并后feature/
分支将被删除。之后在 develop 的 HEAD 处获取代码。
when you use git-flow, the develop and the other branches are created locally only?
是的。除非你将它们推送到服务器(bitbucket、github 或其他)
if I make a git-flow feature finish it was not deleted from bitbucket, what you mean that it is deleted after I make a new update? you mean if I create another feature?
我的意思是当您执行 git push origin :feature/name
时,您将更新(将功能分支合并为开发分支)推送到 bitbucket。并且由于update合并到develop后删除了分支,bitbucket在拿到update后删除了server上的branch
lets say the first developer who uses git-flow commits the branches to the remote server and does not delete it, the release 0.1 will be there and the 0.2 and so on, right? any idea how to do that?
是的。你只需要在本地做git-flow逻辑,不要把删除分支的更新推送到服务器。
and , let say the first developer using gitflow commits the develop branch to the head master, is there any way to make all new developers fork from that branch?
请其他开发人员从 bitbucket 中拉出每个分支,然后从您想要的分支中分叉出来。 git-flow
只是一种使用 git 的哲学。所有 feature/
、release/
事物都是具有模式名称的正常分支。像正常的git分支一样对待它们,不要想太多。