Delete git LFS files not in repo

I uploaded some files to git LFS and I switched to my storage limit. Now the files that I downloaded do not appear in the repo, but I'm still above the data limit and I can’t upload anything.

+4
source share
2 answers

This is currently not possible using the lfs command line. From the Atlassian Git LFS tutorial :

The Git LFS command-line client does not support trimming files from the server, so how you delete them depends on your hosting provider. In Bitbucket Cloud, you can view and delete Git LFS files through repository settings> Git LFS

GitHub :

Git LFS , . , , .

- , BFG, , .

+2

Git LFS LFS Git Git lfs prune:

$ git lfs prune

βœ” 4 local objects, 33 retained

Pruning 4 files, (2.1 MB)

βœ” Deleted 4 files

Git LFS, . - , :

  • , ( - lfs.pruneremotetocheck )

. https://www.atlassian.com/git/tutorials/git-lfs

+2

Source: https://habr.com/ru/post/1678974/


All Articles