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

Cannot clone repo from SourceTree, but gitBash works.

I tried to clone SSH repo and got this failed message:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/Fotal/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" fetch origin

error: cannot spawn sh: No such file or directory
fatal: unable to fork

Then, when I clone the repo using gitBash and try to push / fetch / clone... then this error repeats.

1 answer

0 votes
Ana Retamal Atlassian Team Jul 15, 2019

Hi Nikita, welcome to the Community!

From your message it's not clear to me if these operations work on Gitbash or not. To help us investigate this issue for you, and if you're still experiencing this issue, could you answer the following?: 

  1. Are you getting this error when using Gitbash instead of Sourcetree?
  2. Which Sourcetree version are you using?
  3. For troubleshooting purposes, can you check if it works when using HTTPS
  4. Have you checked the logs?

Let us know if you need any further help.

Best regards,


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,069 views 5 13
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