You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Undo Last Commit currently behaves like git reset --mixed: it undoes the commit and discards anything that has been staged. If I had previously carefully added files or hunks to the stage, this work is lost.
I think it would be better to switch to the git reset --soft behavior:
If adding to index was carefully done, this work would be preserved.
If the users wants the --mixed behavior, i.e., reset all the staged files, VSCode already has a convenient button for that.
Because of the latter point, I'd propose VSCode changes the behavior, not introduce an option for mixed vs. soft behavior.
The text was updated successfully, but these errors were encountered:
The Undo Last Commit currently behaves like
git reset --mixed
: it undoes the commit and discards anything that has been staged. If I had previously carefully added files or hunks to the stage, this work is lost.I think it would be better to switch to the
git reset --soft
behavior:--mixed
behavior, i.e., reset all the staged files, VSCode already has a convenient button for that.Because of the latter point, I'd propose VSCode changes the behavior, not introduce an option for mixed vs. soft behavior.
The text was updated successfully, but these errors were encountered: