Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Oops - How to Undo Anything
27%

Summary

Here's a quick reference for the commands you learned in this chapter:

SituationCommand
Discard uncommitted changes to a filegit restore
Unstage a file (keep changes)git restore --staged

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.