Search code examples
gitgit-lfs

Recover git lfs storage


I started to use git lfs, but then I realized that there was a storage limit quota. Now I wanted to recover git lfs storage. I tried removing git lfs and deleting .gitattributes but it still shows in my account that I have half storage used out of 1 GB.

Is there any way to recover that space?

If I reinitalize the repo, I would like to maintain my commits history. How can I do that?

Thank you all for the support!


Solution

  • Follow the instructions in Removing files from Git Large File Storage.

    Unfortunately there does not appear to be a way, on Github, to remove what's in storage without deleting the whole repository and recreating it. Follow the instructions for mirroring a repository.