Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot push new commits because of 2 GB limit overshot

Olexandr Zakordonets August 14, 2018

I accidentally pushed commit that had a lot of image files. 
After that i pushed some more commits, and the repository exceeded 2 GB size.
I tried to do 

git reset --hard <commit-SHA>

to the last commit without images
 and 

git push --force origin master

 
but I still have an error
Now the output of command git count-objects -vH looks like following 
count: 0
size: 0 bytes
in-pack: 49534
packs: 1
size-pack: 19.48 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes

2 answers

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 17, 2018

Hi Olexandr, welcome to the Community! 

I've checked your account and I couldn't find any repo exceeding the 2GB, are you still experiencing this issue? If so, please let us know the name of the affected repo so I can have a look.

Kind regards,

Ana

Olexandr Zakordonets August 20, 2018

the repo can be found here
https://bitbucket.org/vitalik_kashuta/ecommerce/src
Sorry for the late answer

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 20, 2018

Hi @Olexandr Zakordonets, I've run a git gc on that repo and the size went down to 2GB. We've manually checked the size of the remote and this is how it looks:

count: 0

size: 0 bytes

in-pack: 56862

packs: 1

size-pack: 2.01 GiB

prune-packable: 0

garbage: 0

size-garbage: 0 bytes

 

You'll need to follow the steps at Reduce repository size again, as look like the changes you did were not pushed to the remote. 
Let us know how it goes!
Kind regards,
Ana
0 votes
Olexandr Zakordonets August 20, 2018

I accidentally created a new answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events