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

Regards,

Mohan

1 answer

1 accepted

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.

Cheers,

Charles

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

Cheers,

Charles

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.

Charles

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.

Cheers,

Charles

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 06, 2018 in Bitbucket

Do you use Bitbucket Cloud and Jira Cloud? If so, let us know!

Hi Community, I'm Julia and I'm on the Jira Software Cloud marketing team!  We're looking for companies or teams using Bitbucket Cloud and Jira Software Cloud. If your team fits the t...

87 views 3 3
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