gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 08:56:41 25 4
gpt4 key购买 nike

我将 git LFS 添加到存储库,并希望将一些已经提交的文件转换为 LFS 对象。我运行了以下命令:git lfs migrate import --include="*.shelf"现在在我的本地存储库中,所有 *.shelf文件已被替换为文本指针。
然后我跑了一个 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.


如“ What does git lfs migrate do? ”中所述:

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

关于Git LFS : Where are the files stored before they are pushed?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63789040/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com