Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to track history of hotfix branch names when the branch is deleted Edited

In fost of the workflows I have seen, it looks like when you create a hotfix, you branch off release, fix the bug and merge back to release and probably master. If the branch was named say hotfix-123 becaus that was how you refer to it on your issue tracking system, then when you delete the branch, you lose the name. If you dont delete the branch, you'll end up with a large number of branches that will just be noise for normal work unless you want to refer back to that particular hotfix.

If you delete the branch, how do people track this back to their issue tracking system ? The only way I can see so far would be to either tag the branch and push the tags back to origin, or make sure your initial commit of the branch contained a reference to the hotfix id.

Are there any better alternatives or is this all thats available ?

This assumes the branch is deleted after its been merged. I notice the visual of the branch remains, just the name is removed.

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Jun 22, 2018

Hi Andrew,

Welcome to the Atlassian Community.

The merge commit contains the source branch of your merge, so if the hotfix branch was deleted you can always recreate it using that commit.  You can also use git reflog to restore deleted branches, have a look at How to restore a deleted branch.

We are using both Bitbucket and Jira and track it based on the pull request, so even if the branch has been deleted, we have a record of the merge and all the commits that was part of it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,293 views 4 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you