Create
cancel
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

reduce repo size

Can you please help me with that:

remote: Repository is in read only mode (over 3.7 GB size limit). Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.
fatal: unable to access 'https://alberti3@bitbucket.org/alberti3/workspace_aa.git/': The requested URL returned error: 403

 

By mistake I added a very large file. Then I removed it and changed the .gitignore, but at that point I was not able to push the new commit.

4 answers

1 accepted

0 votes
Answer accepted
Ana Retamal Atlassian Team Feb 07, 2019

Hi Andrea,

What's the current size of your repo? Please use the following command and let us know the output:

git count-objects -Hv

If it's over 2GB, then you're exceeding the limit and will need to follow the steps in the article that was mentioned to you, Reduce repository size

Let us know how it goes!

Ana

Thanks. This worked

Hi,

 

I reduced again the size of my repository, but I cannot push the new changes.

Can someone please help me?

 

Thanks

Ana Retamal Atlassian Team Apr 08, 2019

Hi @alberti3 , I've run a git gc to your remote repository but the size hasn't changed/ Can you confirm your local repo is now under 2GB? You can check that using the following command in the terminal:

git count-objects -Hv

If it's over 2GB, you need to reduce the size first, to do so you'll need to follow the steps in the article Reduce repository size

Let us know how it goes!

Ana

remove the file from your project's current file-tree. remove the file from repository history — rewriting Git history, deleting the file from all commits containing it. remove all reflog history that refers to the old commit history. repack the repository, garbage-collecting the now-unused data using git gc

I would suggest you simply forget about it. Your go with the flow is very simple, but there are conditions, while developers need to do more than one pull request. Visit this blog to see more.

HI! I followed the steps in the reference article and used BFG to get my local repo down under the file size limit, but the remote is still locked, in read-only mode. What do I do next to push up my new, trimmer local repo?

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,706 views 10 16
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