Git LFS:文件在推送之前存储在哪里?

Git LFS: Where are the files stored before they are pushed?

我将 git LFS 添加到存储库并想将一些已经提交的文件转换为 LFS 对象。我 运行 以下命令: git lfs migrate import --include="*.shelf"

现在在我的本地存储库中,所有 *.shelf 文件都已替换为文本指针。

然后我 运行 a git push,但不幸的是,即使对于 LFS,我的文件也太大了,命令导致错误。现在我只有文本指针,不知道如何取回我的原始文件。

确定它们必须在推送之前保存在本地某处吗?

如何找回我的原始文件?

How do I get my original files back?

首先检查 git lfs-checkout 是否可行。

Try to ensure that the working copy contains file content for Git LFS objects for the current ref, if the object data is available.
Does not download any content, see git-lfs-fetch for that.

如“”中所述:

the original git-objects of the binary files are still in the .git folder

The content of the file is stored in the .git/lfs/objects folder