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

Wow this is a new level of Git hell I haven’t even heard about!


Yeah, keeping track of Git’s three areas (files, staged changes, repository) can get confusing. After some thought I think my advice to you to use `git reset --soft` would be better as just `git reset`, because that’s a neater “starting over”: it’s more of an “undo” of the last commit action, I guess. I often find myself reaching for `git reset --hard` after screwing up and not feeling like tracking down how I broke things.




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

Search: