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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

My repo size crossed 1.6 GB, how to reduce that Edited

I was included some of the data files in one of the branch, after few days i have removed the datafiles which is having more size, but my repo size is not came down

how can i reduce the repo size

1 answer

0 votes

Hello @hazarathboreddy_300016342 ,

Here's a useful article on how to reduce repository size. Simply speaking, when you add a big file and later remove it by just making another commit, that file still resides in the repository history, so repository remains huge. What you need to do in this case is rewrite history to remove big file entirely (as if it has never been added to the repo). History rewrite is quite powerful operation, and you should be careful when using it.

Note that after you reduce the size and push the new, smaller version of your repository to Bitbucket, it might not reflect the size change immediately. This is due to the fact that Git garbage collection isn't triggered every time as it is an expensive operation. So you can either keep working on the repository, and GC will eventually trigger on some push, or open a support case with us asking to trigger GC manually.

Hope this helps. Let me know if you have any questions.


Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

441 views 4 4
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