How to undo the last commit in git, but keep my changes as unstaged?
I would leave off the –soft in the other two answers and go with a simple git reset @^ (or git reset HEAD^ in older versions of git), which will default to git reset –mixed @^. The difference is that a soft reset leaves the files staged for commit, which is not what it sounds … Read more