Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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 2.5.5.0 and win 10.

2 answers

0 votes
BillyP Community Leader Apr 30, 2018

Hello, 

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

If so, can you share your config?

-Billy

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

 SourceTree_2018-04-30_17-13-02.png

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

 

You mean this file? 

AppData\Local\Atlassian\SourceTree.exe_Url_i4in3c5q4teqz4osjdo33qsze410ndkz\2.5.5.0\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: https://imgur.com/a/DeL4jLE

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. 

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.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in DevOps

Step up your DevOps game webinar Q&A series - Questions answered!

  On October 21st, 2020 we hosted a webinar titled,   Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...

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