Oops - How to Undo Anything
27%
Summary
Here's a quick reference for the commands you learned in this chapter:
| Situation | Command |
|---|---|
| Discard uncommitted changes to a file | git restore |
| Unstage a file (keep changes) | git restore --staged |
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
