GIT Branch and Tag creation Using Stash

Hello ,

Does STASH web UI provides us an option to -

1) Create branches

2) Create Tags

3) Undo Commits

If not is there a paln to incorporate these features to Stash



1 answer

1 accepted

0 votes
Accepted answer

Hi Mohan,

Unfortunately Stash does not yet have a way to do anything of those things. That might actually make a nifty little plugin. As far as I'm aware there isn't a immediate plan to introduce that into Stash, although you're welcome to raise a feature request.

Undoing commits might be a little problematic given that unless it's the tip of branch there could be merge conflicts, which we couldn't do much about.



I guess we cannot view Tags as well in Stash Web GUI ?

If the branch and Tag creation facility is not inbuilt in Stash , How can we achieve this ?

Hey Mohan,

You can certainly view commits/files from a given tag by using the branch selector. Is that what you mean?

Creating branches/tags can be done locally on a cloned repository and then pushed to Stash. eg

git tag my_tag
git branch my_branch
git push origin my_tag my_branch



Thanks Charles .

Where can i find teh branch selector for a given tag ?

When you're viewing files or commits there is a branch selector up the top-left, where you can select a branch or tag to change the current view.


Thanks Charles , I will try out the stuff as you indicated.

Can we push/merge a branch to another branch using Stash ? I want to avoid the usage of pull requests and additionaly want to attach a commit messages with the push/merge operation.

Thanks again for all the help

Hi Mohan,

You can certainly do that. In Git you have to think of branches more as pointers or named references than a heavy 'branch. So creating a branch on another branch is as simple as "attaching" another pointer.

I recommend reading GitPro for more information about how Git works. I've found it helps make using Git a much more enjoyable experience.



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

1,069 views 5 10
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