feature-branch

Is using “feature branches” compatible with refactoring?

一个人想着一个人 提交于 2019-12-02 21:29:13
“ 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 tend to get uglier code bases which is more difficult to write tests for. In real life there are always

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

这一生的挚爱 提交于 2019-11-30 09:26:14
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 "B" runs git branch remoteA/newfeature developer "B" works on this branch, commit his work and pushes

git - branch alias?

孤街醉人 提交于 2019-11-30 04:15:19
I am researching switching from starteam to git. Currently, in starteam, we use "floating views" with special names. These floating views basically work like aliases. Therefore, we can specify a specific alias to checkout from and we'll get the branch that we're currently model testing. How would this be done in git? This is basically how our branches are organized: These are all branches master (stable view) | - Branch 2012.05.01 | | - Project 1 | | - Project 2 | | - model [floating view / alias to Branch 2012.05.01] | | - Branch 2012.07.11 (these would also have various child views for

git - branch alias?

旧时模样 提交于 2019-11-29 01:33:06
问题 I am researching switching from starteam to git. Currently, in starteam, we use "floating views" with special names. These floating views basically work like aliases. Therefore, we can specify a specific alias to checkout from and we'll get the branch that we're currently model testing. How would this be done in git? This is basically how our branches are organized: These are all branches master (stable view) | - Branch 2012.05.01 | | - Project 1 | | - Project 2 | | - model [floating view /

Feature Toggles vs Feature Branches

こ雲淡風輕ζ 提交于 2019-11-28 16:21:33
What are "Feature Toggles" and "Feature Branches" and what's the difference between them? What are the pros and cons? Why is one better than the other? I found some articles on Google regarding this, and I tend to be in the "Feature Toggles" camp, but I'm not convinced that "Feature Toggles" is the better choice in all the cases. Electrawn Feature toggles are methodology used in a Continuous Integration/Continuous Delivery (CI/CD) chain (Agile/Kanban project methodology). Basically, you send new features to production in a disabled state, then in an admin console turn the feature on (or off if

Feature Toggles vs Feature Branches

前提是你 提交于 2019-11-27 19:55:10
问题 What are "Feature Toggles" and "Feature Branches" and what's the difference between them? What are the pros and cons? Why is one better than the other? I found some articles on Google regarding this, and I tend to be in the "Feature Toggles" camp, but I'm not convinced that "Feature Toggles" is the better choice in all the cases. 回答1: Feature toggles are methodology used in a Continuous Integration/Continuous Delivery (CI/CD) chain (Agile/Kanban project methodology). Basically, you send new

Rebase feature branch onto another feature branch

前提是你 提交于 2019-11-27 05:48:35
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 correct syntax and which branch I should have checked out. Will this command produce the desired result?

Git merge master into feature branch

怎甘沉沦 提交于 2019-11-27 05:43:05
Lets say we have the following situation in git: A created repository: mkdir GitTest2 cd GitTest2 git init Some modifications in the master take place and get committed. echo "On Master" > file git commit -a -m "Initial commit" Feature1 branched off master and some work is done: git branch feature1 git checkout feature1 echo "Feature1" > featureFile git commit -a -m "Commit for feature1" Meanwhile, a bug is discovered in the master-code and a hotfix-branch is established git checkout master git branch hotfix1 git checkout hotfix1 The bug is fixed in the hotfix branch and merged back into the

Git merge master into feature branch

陌路散爱 提交于 2019-11-26 10:03:50
问题 Let’s say we have the following situation in Git: A created repository: mkdir GitTest2 cd GitTest2 git init Some modifications in the master take place and get committed. echo \"On Master\" > file git commit -a -m \"Initial commit\" Feature1 branched off master and some work is done: git branch feature1 git checkout feature1 echo \"Feature1\" > featureFile git commit -a -m \"Commit for feature1\" Meanwhile, a bug is discovered in the master-code and a hotfix-branch is established git checkout

How can I delete all Git branches which have been merged?

北战南征 提交于 2019-11-26 03:16:14
问题 I have many Git branches. How do I delete branches which have already been merged? Is there an easy way to delete them all instead of deleting them one by one? 回答1: UPDATE: You can add other branches to exclude like master and dev if your workflow has those as a possible ancestor. Usually I branch off of a "sprint-start" tag and master, dev and qa are not ancestors. First, list all branches that were merged in remote. git branch --merged You might see few branches you don't want to remove. we