July 2018
Intermediate to advanced
354 pages
10h 57m
English
Again, Git will reset the branch pointer and HEAD to point to the previous commit. However, with the --soft option, the index and working directories are not reset, that is, they have the same state as they had before we created the now undone commit.
The following diagram shows the Git state before and after the undo:

Read now
Unlock full access