Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Your Git Cheatsheet
93%

Undoing Things

CommandWhat It Does
git restoreDiscard uncommitted changes (back to last commit)
git restore --stagedUnstage a file (keep the changes, just remove from staging)
git revert HEADCreate a new commit that reverses the most recent one
git revert

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.

Unlock now  $9.99$7.49

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More