Giter Site home page Giter Site logo

Comments (3)

oldratlee avatar oldratlee commented on April 27, 2024

1.远程是否存在some-feature分支?

开发过程中,可以把本地 feature分支 push到远程

  • 远程可以作为备份
  • 方便其它同学看到,可以review修改
  • 如果用pull request或是其它同学做合并,需要有远程分支

2.那么在小红完成发布中,本地release-0.1分支是否应该在本地master分支合并完成之后,先合并来自远程develop分支的代码,然后本地develop分支合并本地release-0.1分支,然后提交?

完整类型的分支体现在:

上面的图主要 看的是 修改内容 在分支之间的流向(流向就是合并来完成),梳理就是:

  • master => hotfix => develop/master
  • develop => feature => develop => release => develop/master

总结一下,流向目标都是 develop/master,区别是 develop分支是面向开发的完整收集,而master是面向发布的完整收集。

你提到的分支类型是 release(release-0.1)、master、develop,梳理就是(上面完整梳理的一部分):

release => develop/master

理解这个过程 可以先不管分支是 远程 还是 本地。

要注意的是,在合并时,本地分支要和远程分支是一致的,即可(避免合并时丢了提交)。

from translations.

Howld avatar Howld commented on April 27, 2024

我的意思是develop分支在开出release之后,有提交更新,那之后release分支要合并回来,是否应该先从develop分支合并新的提交?还是直接就合并回develop分支(感觉对合并不同分支,不是很理解)?

from translations.

oldratlee avatar oldratlee commented on April 27, 2024

之后release分支要合并回develop,是否应该先从develop分支合并新的提交?还是直接就合并回develop分支?

对于develop分支,上面2种方式是一样的。

对于release(比如release-0.1)分支合并到master,打了tag后就可以删除,没有必要去合并develop分支。

感觉对合并不同分支,不是很理解

如果只是对 分支合并 不是很理解: 多做一下合并操作,多看看合并的出来的效果,多理解一下就好了 :)(要理解的是 合并操作后历史树的变化)

Gitflow本身比较复杂,理解合并操作,可以先从简单的工作流【集中式/功能分支工作流】开始。

from translations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.