What’s the best way to move your last git commit back into the “Changes not staged” + “Untracked files” areas (with the commit in question being not-pushed / only in your local repo, effectively removing it from HEAD)?
In other words, how do you roll back a commit, but automatically apply that diff to your unstaged area?
You can use
git resetto set the current branch to the preceding commit, i.e.HEAD^Adding
--softwill keep those files in the index: (ready to be committed)