All cards

Card #057 · Undo

Undoing the commit most recent

#057: Undoing the commit most recent. git reset HEAD~. git reset: Command to restore to a previous state. HEAD~: Shortcut to indicate the most recent commit. Ideally, you should not undo commits that have already been published to the repository.