News for hackers. Stuff that matters.
Re:Magit, the magical Git interface (2017) by leephillips on Friday October 22, 2021 @03:29PM (#28961559)
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.

There are no comments on this comment yet.