Skip to main content

Course

Git and GitHub

Git and GitHubPart 2 of 6 · Chapter 3 of 4

Every Way to Undo, and Which One You Want

Four commands undo four different things and the internet recommends them interchangeably. Name what you regret first — a file, a staging decision, a commit, a pushed commit — and the right command falls out of the answer.

Read first: Writing Commits That Explain the Change


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.