Stash Merging Hotfix from previous tag back into master

We are following the gitflow workflow for our Stash project, but we've hit a snag and I can't find anything specific to our issue in the Atlassian documentation. Here's the scenario:

Master branch is tagged with v1.0 and then v2.0. Bug is found against v1.0, hotfix/ branch is created against v1.0. But what is the best way to merge back in? The Git Tutorial says I should merge hotfixes back into master and down to develop, but in this case, merging to master doesn't seem what I want. Am I stuck with making my hotfix/ branch my tagged v1.0.1?

There is a similar question on SO, but I didn't like the answers ;-)

Thanks!

3 answers

1 accepted

1 vote

You may not like this answer either but I thinkg gitflow is not the best fit if you care about old releases.

In Stash we are using http://blogs.atlassian.com/2013/10/inside-atlassian-feature-branching-on-the-stash-team/with long running release branches and a clear policy on how bug fixes get merged and how those change flow from the oldest to newer release branches up to master.

I've also tried to capture the underlying principles (when to merge what where) here: http://blogs.atlassian.com/2013/11/the-essence-of-branch-based-workflows/

0 vote
Timothy Chin Community Champion Aug 14, 2014

If you have a a branch that sits below master (and in this case develop), I think you should go to that branch first.

Take a look at Maintenance Branches here (https://www.atlassian.com/git/workflows#!workflow-gitflow).

Thank you Stefan! Your article was great. To clarify, you do not use a develop/ branch, but rather master/ for integration? And then your hotfixes will get to your release and back to master. Do you tag master/ or release/ ?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

26,688 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you