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
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...

29,187 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