I have upload a file that is too big for bitbucket.
It was a mistake of me.
bitbucket is for scripts not a big DB.
I have tried to do my steps:
git rm --cached <myTooBigFile>
git commit -am "This was too Big and it it not script,"
git push
Everithing have been accepted but when i try do make some other modification on other files, it refuse and mentionned that I am taking too much space...
I also tried directly on the web site
I went to the remote repository's website > Source > select branch > select folder > select file to be deleted > Edit > Delete > Commit.
But it didn't work.
and this also didn't work;
any suggestion to remove this too big file that blocs everything else , please?
Thank you very much
Hi Julie, welcome to the Community!
You've removed it from your current version, but that file is still available in the previous versions of your repo. You'll need to make sure that file is not in any commit. There are different ways to achieve that:
Hope that helps!
Ana
Hi, I did the instructions in : Reduce repository size. It still do not accept to push even : git push --force. It still says
repository is in read only mode (over 2 GB size limit). Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
And I have also done:
git rm -f ... ;
git filter-branch --tree-filter -f 'myTooBigFile' HEAD
-> reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.
; Still says
repository is in read only mode (over 2 GB size limit). Learn how to reduce your repository size: https://confluence.atlassian.com/x/xgMvEw.
fatal: Could not read from remote repository. Please make sure you have the correct access rights...
Sounds like that the perception is that is is too big too add something, even wht I am trying to do is to rm ...
Any suggestion please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Julie, regarding your last message sounds like you were using a wrong account or maybe some wrong credentials because you got the error message "fatal: Could not read from remote repository. Please make sure you have the correct access rights..."
I've checked the repo again and I could see is bigger than 5GB now, I've run a gc on the remote but the size hasn't changed, which means your file is still that size. Can you run the following on your terminal and let us know the output? This will show the current size of your repo:
git count-objects -Hv
This will repack your files in a more efficient manner:
git repack -A -d
And this will show the size of the new repacked repo:
git count-objects -Hv
Additionally, you can you try cloning it locally and see what size it is. If the size differs from what we have in the remote, it means there must be some additional references and garbage that have been generated during the operations and that we'll need to remove.
Let us know!
Ana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
git count-objects -Hv
-->> Answer: size-pack: 5.12 GiB
>>> git repack -A -d
>>> git count-objects -Hv
-->> Answer: size-pack: 5.33 GiB
-----
I have also tried :
https://stackoverflow.com/questions/24472596/git-fatal-pathspec-is-in-submodule
Removing the directory from git and adding it again.
git rm --cached directory
git add directory
But when try to :
git rm -r fichier
git commit -m "a"
git push
-->> Answer still:
Repository is in read only mode (over 2 GB size limit).
remote:
remote: Learn how to reduce your repository size... -->> Which I already tried.
Any other suggestion ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.