• Community
  • Products
  • Jira
  • Questions
  • Jira + Bitbucket + SourceTree + gitflow - how to use sourcetree's gitflow features while creating branches in JIRA?

Jira + Bitbucket + SourceTree + gitflow - how to use sourcetree's gitflow features while creating branches in JIRA?

In SourceTree, I can use the gitflow button to start/complete features, hotfixes, etc. and it will automatically handle a lot of the gitflow details (and is well organized). However, this creates local branches and does not link them to JIRA issues.

In JIRA, I can create a branch from an issue. This branch is remote (in Bitbucket) and so there is no clear way to use the nice gitflow features of SourceTree.

How can I use both JIRA-initiated and tracked branches with the gitflow features of SourceTree?

9 answers

This widget could not be displayed.

SourceTree's gitflow feature look like very useful.

But in our Bitbucket - each branch has permissions and any changes should  be passed to branch via pull requests. So in this way - we can not use SourceTree gitflow features (because we need pull requests instead of merges)

It would be great if:

  • "Finish feature" button - create pull request instead of local merge
  • "Finish hotfix" button - create pull request to master and develop branches instead of local merges.
  • etc.
This widget could not be displayed.

Here is a link to the potential solution if  anyone is still wondering: 
https://wiki.afm.co/display/PUBL/How+to+work+with+git-flow%2C+SourceTree+and+JIRA

This looks like the answer or pretty dang close to it. Thank you.

This widget could not be displayed.

I am new to all these tools and also git. I have only figured out 2 ways, neither particularly clean, intuitive, or satisfying, so I am hoping an expert can help me.

The first way is to create the branch in JIRA but don't check out from Bitbucket, then in SourceTree use gitflow button to create a new feature and change the source from the default to the new remote branch. The annoyance with this is that you have to remember to manually change the repos that pushes go to, every time, to the remote branch (and easy to make a mistake).

The second way is to create the issue branch in JIRA, checkout from bitbucket (which creates a local copy of the remote branch), and then use SourceTree gitflow to create feature/bugfix branches from this issue branch. The problem is that now you have a pointless intermediate branch that makes it harder to push your updates through the chain.

This widget could not be displayed.

I would also love to see an answer to this...

This widget could not be displayed.

+1 

  • "Finish feature" button - create pull request instead of local merge
  • "Finish hitfix" button -create pull request to master and develop branches instead of local merges.
This widget could not be displayed.
  • "Finish feature" button - create pull request instead of local merge
  • "Finish hitfix" button -create pull request to master and develop branches instead of local merges.

+1

This widget could not be displayed.

+1 "Finish feature" must be create pull request. Otherwise, the "finish feature" is meaningless.

I have no idea why so did SourceTree

This widget could not be displayed.

+1

  • "Finish feature" button - create pull request instead of local merge
  • "Finish hitfix" button -create pull request to master and develop branches instead of local merges.
This widget could not be displayed.

I am new to Jira/Git/Bit/SourceTree world but I believe this is a great question and addition to sourceTree

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 18 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

45 views 1 0
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