Cannot download respository
Asked by Craig Horobin:

Hello, is there a way you can download a respository that is over 2Gbit? It is not allowing me to at the moment even when I upgrade my account.


Answers:
author: Ben
body: Hi Craig,

May I please know how you are downloading the repository? Are you performing a git clone or is there some other method that you are using?

I will also need to see the error log output.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Craig Horobin
body: Hi Ben, I am changing developers so I need to be able to keep a record of my sourcecode. Here is the error message: You can't download this repository because it's too large. Return to the downloads page or the repository overview.

Can I have a temporary repository upgrade to 2.5gbit so that I can download?


author: Ben
body: Hi Craig,

The repository size limit is 4GB but it appears that the download archive limit is 2GB, we cannot actually increase this from our end.

Are you able to perform a mirror clone of the repository instead as a backup measure?

Cheers!

- Ben (Bitbucket Cloud Support)


author: Craig Horobin
body: Hi Ben,

Maybe (I am new to this) Do I clone in VS code or Souretree?

Regards

Craig


author: Ben
body: Hi [@Craig Horobin](/t5/user/viewprofilepage/user-id/5466818)

You can clone using a terminal with the following command:

    git clone --mirror https://username@bitbucket.org/workspaceID/reposlug.git

The **username/workspaceID/reposlug** values are placeholders, you can grab the URL from the UI of Bitbucket by navigating to the repository source and clicking the **Clone**button in the top right.

As for VSCode/Sourcetree, here is a guide on performing this:

* <https://support.atlassian.com/bitbucket-cloud/docs/clone-a-git-repository/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Craig Horobin
body: Thanks Ben,

Bit beyond me successfully getting this done and the time needed to understand properly how and what to do. I tried to clone this but then getting stuck with credential helper. Not making sense to me.

Any other easy ways to reduce the size of the repository so that I can download my code?


author: Ben
body: Hi Craig,

What tool are you using to clone, and which error message/issue do you receive related to GIT Credential Manager?

The only other way to reduce a repository size is to remove large files - but this is a lot more complex than performing a clone:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Craig Horobin
body: I have downloaded sourcetree, I can see the list of repositories but not sure what to do next.


author: Ben
body: Hi Craig,

If you can see those repos, this usually means that you have a successful connection to the workspace.

Are you able to click the **Clone**button on the right-hand side and let me know what it does? Does it complete?

Cheers!

- Ben (Bitbucket Cloud Support)


author: Craig Horobin
body: here it is

**\[SCREENSHOT REDACTED\]**


author: Ben
body: Okay, and does that clone button ever finish loading? If it does - what happens when you click it?


author: Craig Horobin
body: correct, never finsihes loading


author: Ben
body: Hi Craig,

The behaviour you're experiencing may relate to an existing bug documented here:

* <https://jira.atlassian.com/browse/SRCTREEWIN-7132>

Essentially if you click anywhere in that window, the clone button should not be greyed out anymore - it's more of a UI issue.

Please try that and let me know how it goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud