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

until you accidentally use rebase to squash commits and accidentally squash the wrong commits...


then just run `git reflog` to go back to the commit before you rebased


reflog is really out in the tail of git commands you ought to know to use it effectively, though. I'd say you're at much more than six commands at that point.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: