Restore LFS from local Gitea files

Hi!

My Goal is to be able to restore Gitea repository data without setting up a Gitea instance.

What i have done:

I copied (from my gitea server) the gitea/data/git directory to my local PC.

then i ran git clone gitea/data/git/repositories/my-organisation/my-repo.git

This works for any repository except for those with LFS-Files, because git then tells me that those cannot be located.

Is it possible to check out a repository from this local data with LFS Files intact?

1 Like