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

I found one article, only one, that did more than anything to help me understand git. Can't find it anymore. :-( But it had to do with reflog and how any command could be undone since nothing was truly destructive, and how reflog actually had the edges in the graph and you just needed to know how to repoint them to the right nodes. Or something. This is probably one of my least helpful HN comments.

edit: It might have been this one: https://hackernoon.com/https-medium-com-zspajich-understandi...



> any command could be undone since nothing was truly destructive

As the article mentions,

    git reset --hard
will blow away uncommitted changes in your working tree.


It isn't entirely useless, there's a chance that someone who still has that article can link it here : )



I'm guessing that was this article which was on HN 2 weeks ago: https://news.ycombinator.com/item?id=19877811




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: