Questions tagged [branching-strategy]
153 questions
73
votes
12 answers
Branching Strategies
The company I work for is starting to have issues with their current branching model and I was wondering what different kinds of branching strategies the community has been exposed to?
Are there any good ones for different situations? What does…

Craig H
- 7,949
- 16
- 49
- 61
22
votes
4 answers
Multiple development branches with git-flow
I am currently looking a lot into git-flow, and trying to figure out, how to use it for the projects I am involved on.
I have looked at the various git-flow tutorials and I am fairly familiar with git. Hence I do not need any tips on git alone, but…

LiKao
- 10,408
- 6
- 53
- 91
20
votes
2 answers
How do closed branches affect Mercurial performance?
I've noticed that some answers to questions about branch names quote the Mercurial wiki to indicate that the branch-per-feature or branch-per-bug naming conventions may cause performance problems.
Does the ability to mark branches as closed with the…

Chris Phillips
- 11,607
- 3
- 34
- 45
17
votes
4 answers
Enable branch protection rules in Github at the Organisation level
Is it possible to enable branch protection rules at the organisation level in Github so that all repositories part of that organisation inherit these rules for the applied branches. Right now its really a hassle to enable those same set of rules on…

Ashley
- 1,447
- 3
- 26
- 52
16
votes
1 answer
Trunk-based development release & hotfix questions
I'm having trouble to understand how to deal with the following scenario:
Feature A is committed to master as commit A.
We are ready for release v1.0.0 so we tag commit A as v1.0.0 and we create a release branch rel-1.0.x from it for QA.
Feature B…

plalx
- 42,889
- 6
- 74
- 90
13
votes
4 answers
git-flow: workflow for making "release candidates" / QA web artifacts
We are developing several projects that consist of web artifacts, using the git-flow branching model.
Refer to: Vincent Driessen's git flow branching model
We are using develop branch and jenkins to auto build and deploy SNAPSHOT web artifacts to…

vikingsteve
- 38,481
- 23
- 112
- 156
11
votes
5 answers
What branching strategy should I use during the development/maintenance of a web application?
I am trying to decide on the best branching strategy for a web application project. Here is what I have come up with until now and I would greatly appreciate any comments and experiences.
The way I see it there are two main branching strategies:…

BernardMarx
- 916
- 8
- 17
10
votes
2 answers
How can I do a bugfix on master and integrate it into my less stable branch(es)?
I'm using Git for one of my projects at the moment, and I love it.
However, because I'm the only one working on my project, the only commands I've been using are
git status
git add .
git commit -m 'message here'
git push origin master
I have pushed…

BigJobbies
- 499
- 8
- 20
9
votes
2 answers
Git branch is still on same line as master
I am getting something unexpected happening in the git tree. I have created a branch off of master, however while I am performing commits on the new branch it appears as though these are taking place in the same code line as master...
As you can…

Matthew Pigram
- 1,400
- 3
- 25
- 65
9
votes
2 answers
Git branching model strategy
We are trying to follow the gitflow branching model, but with a twist.
We have have four servers environments where the product can be deployed to, each server serves a purpose : development, internal testing, external testing, and…

David Smit
- 829
- 1
- 13
- 31
8
votes
1 answer
Git: Test combination of two feature branches
I have a Git branch for each feature. However, sometimes, when developing in branch A, I would like to test how A would behave if B was applied also.
At the moment, I use this:
git checkout A
git branch base
git merge B
git reset --mixed base
git…

schoetbi
- 12,009
- 10
- 54
- 72
8
votes
1 answer
How do I set a default merge strategy specific to a file with Git?
This question is not iOS-specific, but I'm including the actual use case here for clarity
I run an iOS project called Foobar, obviously kept under version control.
Amongst the project files in the iOS project environment there's something called…

fatuhoku
- 4,815
- 3
- 30
- 70
6
votes
1 answer
How To Set A Default Template For Branch Names In Azure DevOps
From a task on a board in Azure DevOps I can click on "Create a new branch" as shown below.
This will open a dialog in which to specify the name and base for the new branch. To save time — and to encourage consistent, meaningful branch naming on…

Trevor Reid
- 3,310
- 4
- 27
- 46
6
votes
2 answers
Git branching model, what is the benefit of having a development branch?
The following Git branching model seems to be quite widespread.
http://nvie.com/posts/a-successful-git-branching-model/
In our current project we do not have a development branch and create feature/bugfix branches off of master and merge them back…

Will
- 2,858
- 6
- 33
- 50
5
votes
4 answers
Multi-Developer-Setup with SVN-VC and remote test-servers for each developer. Best practices?
I would like to have some input on how a professional development setup with the following requirements might look like.
several PHP-developers (say PHP)
each developer belongs to one group
each group has one team-leader who delegates tasks
each…

Raffael
- 19,547
- 15
- 82
- 160