Unfortunately, I introduced an error in my .gitattributes
some weeks (and commits and pushes) ago. As a result the .gitignore
of a subfolder of my project is assumed to be on git lfs. But for some reason, it never got pushed there. I corrected the wrong .gitattributes
by a new commit. Now, everything is fine except that I cannot checkout older commits, which assume that the file exists in git lfs. I get the following error:
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
How can I fix that? Is there a way to push the file manually and give it the correct id? Or can I retrospectively fix the wrong commit?