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

Error when cloning from bitbucket repository Edited

i'm getting this error when i'm trying to clone from my bitbucket with either sourcetree or git, can any 1 help me? thanks.

 here is a link with the problem:



cloning error fatal: The remote end hung up unexpectedly 0 GiB | 5.86 MiB/s

fatal: early EOF fatal: index-pack failed Error(s) during clone: git clone failed: exit status 128

1 answer

this is my error: git clone fails after 1 GB

i cannot stop the bitbucket or change anything in it since its from the company.


and i have no idea what Nginx is :\, thanks for helping tho, still trying to fix it.

Mike Corsaro Atlassian Team Jun 07, 2018

Okay. The following might work for you:

  • Try and clone from Sourcetree again, but under "Advanced Options" set "Clone depth" to 1 rather than 0
  • If the repo clone works, and the repo opens, then you should click the "Terminal" button and run the following command:
    git fetch --unshallow 

yes, that helped, thank you, but now i only see the master branch, how do i make it so that all the other branches appear?


Thank you very much for all the help so far.

Mike Corsaro Atlassian Team Jun 07, 2018

Try running:

git pull --all

 in your terminal. You might find this thread helpful.

$ git pull --all
Fetching origin
Already up to date.

i'll take a look into that threat thank you

i've tried it, but it's not working.

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,907 views 0 12
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