Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I made several errors then did a push -f to GitHub and blew away the git history for a half decade old repo. No data was lost, but the log of changes was. No problem I thought, I’ll just restore this from Backblaze.

`git reflog` is your friend. You can recover from almost any mistake, including force-pushed branches.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: