Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

sh.exe Fatal: needs to be a branch. It does not exist and is required.


I'm trying to start a new feature from the working copy parent but I get: 

> sh.exe Fatal: needs to be a branch. It does not exist and is required. 

and the name of the branch also has a long hash. But if I start a new feature from the latest dev branch, then it works fine. What's going on? It used to work. 

I'm on ST and win 10.

2 answers

Workaround:: make a new branch through clicking the branch icon, and putting the parent branch before the new.. [feature]/[new branch] . 
Encountered the same problem but was able to work around it. 

Yeah I know, but I might as well just use tortoise git instead if I do that.

0 votes
BillyP Community Leader Apr 30, 2018


To start a branch, do you `git checkout -b branch-name` or is it automated somewhere?

If so, can you share your config?


I'm using Git Flow, it comes with source tree. 


This is not just making a new branch or using cli. 


You mean this file? 

AppData\Local\Atlassian\SourceTree.exe_Url_i4in3c5q4teqz4osjdo33qsze410ndkz\\user.config? Doesn't it have private keys?

BillyP Community Leader May 01, 2018

Yeah, I'm not prying,  I was curious of the automated nature.  But that isn't what's going on here.  

Next step is to follow this key situation.  Have you loaded your keys into your repo so it can authenticate directly?

What do you mean load keys to the repo? I can push pull and create branches without any problems or any login prompts. 

BillyP Community Leader May 02, 2018

Okay, cool.

For your Gitflow, does that create the local branch or expect to pull down the branch already created within the Repo?

No I don't see any new branches.


This is all I see:

BillyP Community Leader May 02, 2018

Did you try to copy the data to another directory?  

If the data was copied, the supporting files that enable all the 'git flow' features to work might not be present.  

You mean copy the repo to another folder along with the .git folder? 

BillyP Community Leader May 03, 2018

Copying the folder shouldn't be the method.  This should be handled by gitflow.  

And this method, utilizing gitflow, works normally?  What is the change that is different?

I don't understand the question. 


If I start a new feature from the latest dev branch it works fine, but if I want to start a feature from the current working branch then I get the error I mentioned. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,279 views 5 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you