The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Undo gitflow action

tobyjunker
September 2, 2013

Hi,

I am using sourcetree with gitflow for Xcode (iOS development). I thought I was ready to start a new release branch and so selected that option from gitflow menu. Then I realized that I am not ready yet, so I want to undo this action but don't know how to.

The simplest option would be to simply finish this release, but that would merge all my current changes from develop into master, but I don't want to do that yet, since I am not done with this release and I only want to merge into master when I am ready with the release, just as intended by gitflow.

The next option would be to switch my active branch back to develop and continue with the missing changes and then create a new release branch. However, then I still have the old release branch kicking around and I don't know how to get rid of it.

Thanks, Toby

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 2, 2013

I'm sure that you can just right click and delete the branch right?

tobyjunker
September 2, 2013

It's unfortunately not quite that straightforward. Here are the choices when I right-click on the branch in question (it is the active branch):

However, if I make develop the active branch, then the context menu of the feature branch chnages to this:

So now, I can delete the branch. I am still wondering about gitflow. So far, I can of course finish the feature. Does the gitflow script keep a reference somewhere of active release branches, or does it simply check the structure to see if anything is called "release-" and offer choices accordingly? In the latter case it should be safe to simply delete.

The question is what ahppens to my commit history? I do have one commit to this branch. Will this not mess up the repository?

mberistain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 7, 2016

Hello, i deleted the branch and it looks like it works perfectly. I'm not sure what will happen when I push my changes to the server.

TAGS
AUG Leaders

Atlassian Community Events