Questions tagged [feature-branch]
139 questions
4
votes
3 answers
Should I ever have long-term feature branches in Git Flow?
I am using Git Flow with a team. We all branch off of develop for features and merge back in after code review. It works well for us, however we now have one feature that will take a developer over a month to complete. We will have a few releases…

mikegertrudes
- 633
- 6
- 12
4
votes
2 answers
How do I force push a feature-branch to Gerrit?
I have been working on a (remote) feature branch and after changing the branch history, I want to push it to Gerrit (with force push).
I tried the following command:
git push origin HEAD:refs/for/branch_name --force
However, instead of changing…

Liran
- 307
- 1
- 4
- 11
4
votes
3 answers
How can I prevent people from using reintegrated branches in SVN?
We've started using the feature branch pattern here at work.
Everything appears to be working well, here's the steps we use:
Developer branches trunk
Developer(s) complete implementation and testing using the branch
Developer merges trunk into…

RoboJ1M
- 1,590
- 2
- 27
- 34
4
votes
4 answers
How do I extract and remove a merged branch in Git?
I have a 7 branches that affect the same files, all have been merged into the master branch through a secondary branch. One of the branches was not meant to be merged because it was not stable - can I undo the changes made by that single…

Sleavely
- 1,654
- 2
- 11
- 18
4
votes
2 answers
Subversion reintegrate branch conflicts
I'm using svn for version control and have the following question:
Let's say I develop something in my feature branch and constantly upstream changes from the trunk (by simply merging them and resolving conflicts). Now, at some moment I made my…

Yippie-Ki-Yay
- 22,026
- 26
- 90
- 148
3
votes
1 answer
"Move" files to their own branch in Git
In master I have some files that should better live in a feature branch. I'd like to create such a branch and have the files there, at the same time removing them from master.
I'm not concerned about history, i.e., the files need not to be removed…

Boldewyn
- 81,211
- 44
- 156
- 212
3
votes
1 answer
How can QA test multiple features at once with feature branching in Gitflow workflow?
If developers were to work on different branches for different features I understand that they can give a QA build from the feature branch and once it is tested it can be merged with "develop".
But if the QA team is fairly large and can test…

Epsilon
- 180
- 1
- 13
3
votes
1 answer
Changes on feature branch after merge to master
I'm looking for a way to introduce changes into feature branches once they have been merged to master. The goal is to keep the feature branch keep only containing commits that are related to it.
It often happens that a feature needs some additional…

TheMeaningfulEngineer
- 15,679
- 27
- 85
- 143
3
votes
1 answer
Feature branch statistics for a git workflow
My current development environment uses git for VCS, and we use a feature branching workflow. I would like to get to a point where statistics can be generated about each feature. Mainly, I would like to be able to determine how long a feature took…

zgohr
- 678
- 7
- 8
2
votes
1 answer
Publishing a feature branch to preview periodically in git
I'm trying to understand the best way to occasionally publish a feature branch into a preview branch for git. Here is my setup:
Client asks for feature.
I develop initial feature and publish to preview/testing site.
Client provides feedback.
I make…

Eric Anderson
- 3,692
- 4
- 31
- 34
2
votes
1 answer
How to download code from a particular branch in AzureDevOps release pipeline
I need to download all the files from the feature branch in AzureDevOps release pipeline. I am using Azure repo. Is there any task in AzureDevOps classic editor for the same? How to implement this using Powershell?

NCN
- 81
- 2
- 3
2
votes
1 answer
Git rebase and automatically update branch pointer?
I have a set of branches like the following:
* 444ddd - somefeature3
/
* 333ccc - somefeature2
/
* 222bbb - somefeature1
/
------* 111aaa - master
If I were on a single branch (let's say…

joshlf
- 21,822
- 11
- 69
- 96
2
votes
0 answers
Feature branching and loss of code metadata
We use feature branching extensively as a strategy for development. In short and somewhat simplistic terms, what that allows us to do is to keep a stable trunk at all times while developers implementing complex features work on a potentially broken…

Adnan
- 2,949
- 4
- 29
- 45
2
votes
3 answers
How do you move committed changes from a branch to master as pending changes?
I was implementing a new feature, for which I created a new branch, and made a few commits onto it, and pushed. I now wish to continue working on this feature in master, in the form of pending / uncommitted changes. Pending because it needs more…

Kartick Vaddadi
- 4,818
- 6
- 39
- 55
2
votes
1 answer
TeamCity feature branch artifact dependencies
I have a canary build (BuildA) in TeamCity (10.0.2) that builds master, develop, and all feature/* branches when commits occur.
I'd like to create another build (BuildB) that takes a small set of artifacts from BuildA, and runs FxCop on the files.…

slolife
- 19,520
- 20
- 78
- 121