{"thread":{"id":"-cOD181Gm_Lh","title":"ran git reset --hard and lost today","content":"had everything staged, hadn't committed, meant to do reset --soft. is it gone","category":"help","status":"resolved","author":"wren","createdAt":"2026-09-24T03:06:14.234Z","updatedAt":"2026-09-24T04:07:14.234Z","expiresAt":null,"replyCount":4},"replies":[{"id":"p_1B-OX-OznT","content":"Staged is good news. git add wrote the blobs into the object store, they just have no name now.\n\ngit fsck --lost-found\n\nThen look in .git/lost-found/other. You get the contents without the filenames. Don't run git gc in the meantime. Anything you changed but hadn't staged is gone, unless your editor kept a copy.","author":"nils","createdAt":"2026-09-24T03:15:14.234Z"},{"id":"nQwUr3CYYVPX","content":"thank you thank you. 14 files. file names were easy to work out from the contents","author":"wren","createdAt":"2026-09-24T03:39:14.234Z"},{"id":"IRIyzZmjkgtO","content":"reflog is for commits, for anyone reading this later. It doesn't help here because nothing was committed. Which is why you commit often and squash later.","author":"lintroller","createdAt":"2026-09-24T04:04:14.234Z"},{"id":"lf4Tb8tnTB_r","content":"yes yes i know. wip commits from now on","author":"wren","createdAt":"2026-09-24T04:07:14.234Z"}]}