将丢失的文件推送到git lfs

时间:2019-05-22 08:45:06

标签: git git-lfs git-history

不幸的是,我在.gitattributes的几周前(以及提交和推送)引入了一个错误。结果,我项目的子文件夹.gitignore被假定为git lfs。但是由于某种原因,它从未被推到那儿。我通过新的提交纠正了错误的.gitattributes。现在,一切都很好,除了我无法检出较早的提交(假定该文件存在于git lfs中)。我收到以下错误:

Error downloading object: testdata/.gitignore (42e0b88): Smudge error: Error downloading testdata/.gitignore (42e0b88b4a1842297d2671cd534dc6130a7a8fc4806bc7ef9bab82d38df32360):[42e0b88b4a1842297d2671cd534dc6130a7a8fc4806bc7ef9bab82d38df32360] Object does not exist on the server or you don't have permissions to access it: [404] Object does not exist on the server or you don't have permissions to access it

我该如何解决?有没有办法手动推送文件并为其提供正确的ID?还是我可以追溯修正错误的提交?

0 个答案:

没有答案