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

Error when cloning from bitbucket repository


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

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,271 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