feature-branch

Is using “feature branches” compatible with refactoring?

拈花ヽ惹草 提交于 2019-12-31 10:33:02
问题 “ feature branches ” is when each feature is developed in its own branch and only merged into the main line when it has been tested and is ready to ship. This allows the product owner to choose the features that go into a given shipment and to “park” feature that are part written if more important work comes in (e.g. a customer phones up the MD to complain). “ refactoring ” is transforming the code to improve its design so as to reduce to cost of change. Without doing this continually you

Is using “feature branches” compatible with refactoring?

孤人 提交于 2019-12-31 10:32:42
问题 “ feature branches ” is when each feature is developed in its own branch and only merged into the main line when it has been tested and is ready to ship. This allows the product owner to choose the features that go into a given shipment and to “park” feature that are part written if more important work comes in (e.g. a customer phones up the MD to complain). “ refactoring ” is transforming the code to improve its design so as to reduce to cost of change. Without doing this continually you

Rebasing remote branches in Git

房东的猫 提交于 2019-12-29 02:23:09
问题 I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has it's master branch rebased nightly from the upstream SVN, and we are working on feature branches. For example: remote: master local: master feature I can successfully push my feature branch back to the remote, and end up with what I expect: remote: master feature local: master feature I then re-setup the branch to track the remote: remote:

How to continuously build and deploy feature branches with Maven?

自作多情 提交于 2019-12-18 10:39:13
问题 My team is using feature branches to implement new features and continuously deploys snapshot builds into a remote repo for our users to use. Thus 'deploy' really only means 'distributing to a remote Maven repository'. We're currently only running continuous integration builds for the master branch and not the feature branches for the following reason: we're using Maven to build our projects and distribute the JavaDoc and sources alongside the JAR. My plan was now to add a classifier to each

What to do with experimental non-merged git branches?

99封情书 提交于 2019-12-18 03:03:54
问题 What are the current best practices with git branches that have been created to test out a solution to a bug and have not been merged because the review process show that they are wrong or there are better solutions to the problem? An example. Project fizzbuzz has a bug report that reports a crash on empty fields. I create a new branch handle-empty-fields and make two commit to that branch, "solving" the problem. Then I submit that branch to the fizzbuzz project manager, linking it in the bug

Rebase feature branch onto another feature branch

↘锁芯ラ 提交于 2019-12-17 07:58:07
问题 I have two (private) feature branches that I'm working on. a -- b -- c <-- Master \ \ \ d -- e <-- Branch1 \ f -- g <-- Branch2 After working on these branches a little while I've discovered that I need the changes from Branch2 in Branch1. I'd like to rebase the changes in Branch2 onto Branch1. I'd like to end up with the following: a -- b -- c <-- Master \ d -- e -- f -- g <-- Branch1 I'm pretty sure I need to rebase the second branch onto the first, but I'm not entirely sure about the

GitLab CI, monorepo and feature branch

末鹿安然 提交于 2019-12-12 08:55:59
问题 I have a monorepo in GitLab with a Feature Branch approach. What I'm trying to achieve is to launch the part of the pipeline associated to the directory containing the altered files. So my .gitlab-ci.yml looks like : job1: stage: build script: - ... only: changes: - myparentdir/dir1/* job2: stage: build script: - ... only: changes: - myparentdir/dir2/* Create a new branch from develop Commit myparentdir/dir2/test.txt on this branch The pipeline launch every build jobs ! It seems like GitLab

Subversion feature branch requires changes from another feature branch

旧城冷巷雨未停 提交于 2019-12-12 01:17:06
问题 I have two feature branches: featureA and featureB. FeatureA is complete, but not merged into trunk because it's untested and we're not ready to test it yet. I'm working on featureB, and have realised that a change implemented in featureA is required for me to continue. What's the best approach? I think I have a couple of options: Option 1 Merge featureA to featureB branch (or maybe just specific revisions if I'm careful to get all the ones I want), then revert all but the changes I need.

Changes on feature branch after merge to master

落花浮王杯 提交于 2019-12-10 18:37:22
问题 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 polishing after it has already been pushed to master. The changes that have been done to master during that time aren't in conflict with the feature, meaning that a rebase to actual master is possible when implementing the additional work on the

How to share a git feature (or topic) branch with multiple developers

♀尐吖头ヾ 提交于 2019-12-08 23:29:16
问题 I'm following the the workflow described here, as I found many references pointing to this page as a good workflow. As mentioned in the article, "feature" branches are shared between developers, but do not go to the central repository. Let's say a developer "A" starts a new feature branch with git checkout -b newfeature develop . Now let's say that developer "B" needs also to work on this feature. This is my problem. What I did: developer "B" adds developer A's machine as a remote developer