git reset --mixed
(the default option) resets the staging area to a previous state, but not the working tree.
That seems weird. When would I want to do that?
Also, say I made four commits: A, B, C and D. I then reset
to B
. With each commit, I added a file. What would my staging area look like after performing git reset B
?