Forums

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

How to force push a reduced repository to one >2GB?

brianoppenheim
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2018

Hi,

My repository has gone into read mode (>2GB) after accidentally committing data. I ran an aggressive gc and filter-branch in order to get the size down to about 100MB, but I cannot push it this slimmer version, as the original will not accept writes. How can I rectify this?

 

spencer@spencer-lab-desktop:~/Documents/vision/hand_tracking$ git push -f
Password for 'https://brianoppenheim@bitbucket.org':
Counting objects: 212, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (84/84), done.
Writing objects: 100% (212/212), 2.06 MiB | 1.77 MiB/s, done.
Total 212 (delta 126), reused 204 (delta 121)
remote: Resolving deltas: 100% (126/126), done.
remote: Repository is in read only mode (over 2 GB size limit).
remote:
remote: Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.
To https://brianoppenheim@bitbucket.org/brownvisualprosthesis/hand_tracking.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://brianoppenheim@bitbucket.org/brownvisualprosthesis/hand_tracking.git'

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events