24%
Oops - How to Undo Anything
Everyone makes mistakes. You'll edit the wrong file, commit something you didn't mean to, or just want to go back to how things were five minutes ago. Git has several tools for these situations, and knowing them will save you a lot of stress.
Previously, you learned that files move through three areas: Working Directory → Staging Area → Repository. The undo commands in this chapter move files in the opposite direction, depending on which step you want to reverse:
Undoing Changes in Git
Learn Git in a Day - The Visual Guide
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.

