Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is there a way to do git gc on remote?

The thing is with GIT Repo, once you hit 2GB limit it won't let you push anything. That means for my case, even though I already deleted large unnecessary files on my local branch history using git filter method, it still requires me to push forcibly the changes which the repo will not allow you anymore because of the said limit reached.

On the other hand, I also did git remote prune method which did not help because it seems I do not have dangling objects on my remote side which is very unlikely knowing the 2GB limit has been reached.

 

Note: I've also done git reset --hard method in the beginning which probably lost that commit that was reset that has big files.

1 answer

1 vote

Hi JonCarlo,

It is really good that you have tried all the steps at first hand. 

git remote prune will only remove the remote tracking references to remote objects from local repo. git gc is currently run by Atlassian Support team which will remove any dangling commits.
You can raise a support request with Atlassian Support selecting Technical Issues and Bugs option to run a gc on your repository to bring down the repository size. After which you can push your local changes. Please don't forget to mention your repository URL in the support ticket.

Best Regards,
Swetha

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...

325 views 2 10
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