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

Repo too big Edited

I'm running Git on Ubuntu and one of my repos is over 2 GB. I stupidly copied a large directory to my repo and (again, stupidly) pushed it to my repository. Now, over time, my repo has ballooned to over 2 GB and I can't push to it anymore.

I can't seem to fix this; I've run BFG, tried pruning the repo, etc. Nothing seems to work.

Can anyone offer a suggestion on how to do this without having to blast the repo?  this is the repo.

Thank you.

1 answer

0 votes

Hello @blumix,

Welcome to the Community.

I tried to trigger GC for the repository on question, but it is indeed still large, so the large files are still in its history.

Here's an article on how to reduce your repository size. There's a linked guide on how to use BFG for moving files into Git LFS – you can follow it but instead of pushing the files into LFS just delete them.

Hope this helps.


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