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

Using Gitflow with Sourcetree - Branches not getting created

I followed the instructions on this page to setup Gitflow in Sourcetree on my Mac. I then created a new feature branch, made some changes and then commited the new code. And yet the graph in Sourcetree does not show the new feature branch. I tried doing this a couple of times. No joy. What can I be doing wrong? Where is some more extensive documentation?

2 answers

You should see the feature as soon as you create the feature branch, prior to making any commits. At that point it will show up beside develop (or whatever your name is for that branch). If it isn't there, then there was likely an error in starting the feature.

The feature does not show up. Where is any documentation explaining what would cause that? Is it more likely a git issue or a SourceTree/Gitflow issue?

Forget the graph for a moment. Do these feature branches show up in the list of local branches? You may have to expand a "feature" folder.

Do you have your graph set to display "current branch"? If so, change it to "all branches".

It was already set to display all branches. On sort of a side note, the forum website is reporting that the first response I made to your answer was made 7 hours ago, when actually I made it months ago.

Sounds like there is a bug somewhere, I'm not sure in this case how to narrow it down to SourceTree vs Git. Gitflow only handles the create/merge/delete operations, not the display of branches, so it shouldn't be that. File a bug report at The recent date stamp on your comment is probably related to the recent overhaul of Answer's underlying framework.

I merged (from the Assembla repository) two of my branches and now I see the visual branches that I was expecting.

This is the contents of project/.git/config file:

	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true
	autocrlf = false
[remote "origin"]
	url =********.git
	fetch = +refs/heads/*:refs/remotes/origin/*
	push = +HEAD:refs/heads/master
[branch "master"]
	remote = origin
	merge = refs/heads/master
[gitflow "branch"]
	master = master
	develop = develop
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	support = support/
	versiontag = 
[branch "feature/SQLException_Handling"]
	remote = origin
	merge = refs/heads/feature/SQLException_Handling
[branch "feature/SQLException_Handling_01"]
	remote = origin
	merge = refs/heads/feature/SQLException_Handling_01

The two branches at the bottom are the two that I created and neither of them were displayed as branches in the SourceTree graph, at any time (i.e. right after they were created, during edit or after the changes were committed.

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 Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

97 views 0 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