Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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.

3 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

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?

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.

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,564 views 1 9
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