I deleted ALL lfs files using the List Large Files dialog. ALL large files are deleted. It shows 0 bytes of large files used.
but when i push using git lfs push --all hf i get error batch response: Repository storage limit reached (Max: 1 GB)
I deleted ALL lfs files using the List Large Files dialog. ALL large files are deleted. It shows 0 bytes of large files used.
but when i push using git lfs push --all hf i get error batch response: Repository storage limit reached (Max: 1 GB)
just saw in documentation Storage limits
“Deleting only LFS pointers doesn’t free up space” what does this mean? i need to do something more?
i need to do something more?
Yeah. You can also remove old LFS pointer from the GUI Settings screen on the repo.
I think super_squash_history is the simplest method. Since it will erase your commit history too, so it’s a last resort…
i am not using any HFApi. just plain git commands.
after opening this post, git push worked but failed in the end with
❯ git push -f --progress hf main
Username for
Password for
Username for
Password for
Uploading LFS objects: 100% (3/3), 250 MB | 0 B/s, done.
Enumerating objects: 920, done.
Counting objects: 100% (920/920), done.
Delta compression using up to 16 threads
Compressing objects: 100% (886/886), done.
Writing objects: 100% (920/920), 26.24 MiB | 1.17 MiB/s, done.
Total 920 (delta 311), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (311/311), done.
remote: -------------------------------------------------------------------------
remote: Your push was rejected because an LFS pointer pointed to a file that does not exist.
remote: For instance, this can happen if you used git push --no-verify to push your changes.
remote: Offending file:
remote: - file name
remote: - file name
remote: - file name
remote: - file name
remote: - file name
remote: - file name
remote: - file name
remote: - file name
remote: -------------------------------------------------------------------------
To https://<space_url>
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://<space_url>'
Try HfApi in this case for now…