How to create a branch from a given commit in the Stash UI?

Given a certain commit, that is not referenced by an existing branch or tag, is it possible to create a new branch from that commit?

I know you can do this from Git...

I know you can also do this using the Branch Utils in the Stash API...

But I am specifically asking if it is possible to do this from the Stash UI itself?

I can branch from a tag or another branch, but I can't figure out how to branch from a little ol' commit hash.

Thanks

2 answers

It can be done through the web UI.

When viewing the commit, add a tag (right hand side).

Click on the commit to view the commit history, then click the ellipsis next to the tag name and choose "Create branch from here"

Good tip! 

A clarification for the latest UI though (I couldn't find the things you describe)...

"Click on the commit to view the commit history, then click the ellipsis next to the tag name and choose "Create branch from here"

When you've created a tag, and need to create a branch from that tag, simply do this...

  • Go to "Branches"
  • Click "Create Branch" (top right)
  • In the popup window, use the "Branch from" dropdown to select your tag
  • Add a name for your branch and click "Create"

Great tip!  I had the same problem.  Your solution solved it for me!

You cannot do this from the Stash web UI, it only allows you to create branches at the tip of another branch.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

427 views 6 9
Read article

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