Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git flow in GitLab

We're using GitLab for our project and we think it's great. We're also using git flow to manage the changes in feature, develop, master branches.

Can you use the Merge Request build in GitLab to manage the branches in git flow style?

Meaning when accepting a Merge Request for a release branch, it will merge the release branch into master AND into develop.. Or should we always use git flow on our local machines to accept the Merge Requests.

like image 724
JeroenKnoops Avatar asked Nov 03 '13 08:11

JeroenKnoops


People also ask

Does GitLab have workflows?

GitLab Flow prevents the overhead of releasing, tagging, and merging to streamline development. Git simplifies branching and merging, leading software development teams to move away from other source control tools, like SVN, and adopt a workflow to simplify development.

How do I start a Git flow?

Use the “git flow release start” command to create the release branch. When the release is stable, run the “git flow release finish” command. $ git flow release finish '0.1. 0' Already on 'master' Deleted branch release/0.1.

What is Git flow used for?

Gitflow can be used for projects that have a scheduled release cycle and for the DevOps best practice of continuous delivery. This workflow doesn't add any new concepts or commands beyond what's required for the Feature Branch Workflow.


2 Answers

Like this issue 1628 illustrates, it is best to use GitLab to publish (push) branches, then to rely on a specific GitLab feature related to a particular workflow like git-flow.

So the natural approach is to limit those git-flow features to the local clones, and push any branch you want to GitLab once the merge request is resolved.

like image 70
VonC Avatar answered Nov 03 '22 09:11

VonC


By now, there is something called GitLab Flow, "a clearly defined set of best practices".

Cited from the linked source:

It combines feature-driven development and feature branches with issue tracking.

like image 30
Thomas Kainrad Avatar answered Nov 03 '22 09:11

Thomas Kainrad