Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git-flow reopening a finished feature

I am trying to work with gitflow and A Successful Git Branching Model.

Ones in a while I work on features and finish the feature with

git flow feature finish my-feature

While continuing to work I realize that I have something forget to add to my-feature

Or sometimes I am working on a different feature and want to add something to my-feature again...

What would be the way to do this? Is there a way to re-open my-feature again? Would I just commit the changes into development? Or open up another feature?

like image 875
silverfighter Avatar asked May 25 '11 17:05

silverfighter


People also ask

What does Git flow feature finish do?

So in our case, when we "finish" a git flow branch, it makes sense to immediately push the branches + tags to the remote instead of having to enter the git flow commands directly. After entering this config, git flow will automatically push the branches on the remote, thus saving extra time and avoiding confusion.

How do I start a new Git flow feature?

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.

When a programmer using Gitflow begins a new feature which branch do they create a branch from?

When a programmer using Gitflow begins a new feature which branch do they create a branch from? In the Git flow development model, you have one main development branch with strict access to it. It's often called the develop branch. Developers create feature branches from this main branch and work on them.

What is hotfix in Git?

Hotfix branches Maintenance or “hotfix” branches are used to quickly patch production releases. Hotfix branches are a lot like release branches and feature branches except they're based on main instead of develop . This is the only branch that should fork directly off of main .


1 Answers

Using the git-flow principle, i think you should

  1. Create a new feature branch and do the changes. Then merge it back to dev. This is if you are adding a whole new feature.

  2. Use the hotfix branch method. This is if its a minor tweak.

A feature branch deleted should not be recovered under git-flow.

like image 93
Vinoth Gopi Avatar answered Sep 25 '22 15:09

Vinoth Gopi