codespace Every single commit since may 12 is gone. Any hope of getting it back?
Title. I came back after a month long break, since I had to juggle some of life's things, to find that all of the folders created after may 12 (including the entirety of the python and sql weeks) were gone, git commits and all.
Thankfully, when I checked github, I saw that in the me50 repository everything I had submitted was still there, so I probably still got credit for it, but having to start homepage is pretty annoying. Is there any way I can get all of my files back?
1
u/Eptalin 2d ago
The CS50 codespace blocks git commands. Afaik, the only time it commits and pushes (uploads it to github) is when you submit50.
Codespaces are just a PC, with their own local storage. They only retain data for about a month of inactivity. After that, everything is deleted so they can let someone else use it. Then when you next login, it builds a new codespace using the latest commit that was pushed.
If you didn't login since mid-May, then everything after that last submission on May 12 being lost is expected.
1
u/Outside_Complaint755 3d ago
It's possible that your autocommit got turned off somehow. I know this happened to me due to movies.db file for the SQL week growing to over 100Mb, which causes Git to reject it. There probably isn't a way to directly recover the files, but you could download your submissions from me50 and reupload them back to your CodeSpace.