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 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,042 views 1 16
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