Manuals / Version Control (Git) for Non-Engineers / Chapter 3

Steady · beginner · ~25 min · Chapter 3 of 3

Undo without panic

Know discard vs revert. Don’t force-push shared main.

Path progress
100%

Step 1 of 1

Safe undos

Uncommitted? discard in the GUI. Committed locally? amend or new commit. Shared history? revert.

Safe undosDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Safe undosdrag · tap →Go deeperdrag · tap →Follow the dashed drag · tap →

Do this now

Bookmark your Git client’s “discard changes” docs.

Was this step clear?
Chapter learning outcomes
  • Undo
  • Safety

Clear these before you leave