01 / 11
The primary benefit of Git: safely going back
Up to this point, you have focused on recording commits. However, the greatest value of a version control system is the ability to reliably rewind to any previous state.
Knowing you can always revert changes gives you the confidence to refactor boldly and experiment freely.
In this chapter, you will master four essential undo commands. The crucial concept is that which command you use depends strictly on which area you want to restore.