Help recovering my project #5659
-
Hi I'm wondering if someone can help me with this. I have a project that I was working on (a Unity game dev project), and after I installed git lfs, put in the .gitattributes file (with extensions typical for a Unity project) and ran git lfs migrate import --everything it appears many files are now deleted from my project. Is there a way to recover? I'm not sure what happened. Any ideas on what I can do? I have a git repo locally. When I tried to upload to my github repo I got an error saying one of the files was too big so that's when I decided to install git lfs. However, now after running the git lfs commands and (attempting to) migrate the old commits to git lfs it seems my project is broken and I still cannot commit or upload. I don't know how it's possible some of my files are simply missing. It seems like the bigger ones that got taken by git lfs. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What specific output are you seeing that makes you think that the files are deleted? Can you also tell us what behaviour you were expecting? |
Beta Was this translation helpful? Give feedback.
You should be able to do a
git lfs checkout
to convert those into regular files. However, first, you need to rungit lfs install
, becausegit lfs checkout
won't work if you haven't or if you've rungit lfs uninstall
, and it won't push the large files to the remote in that case, either.The way Git LFS works is that it converts the files you tell it to into pointer files like you see there, and the large files are stored outside of the repository and pushed before the regular Git objects.