Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Your Git Cheatsheet
83%

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.