Slide 12
Slide 12 text
TO ERR IS HUMAN, BUT A REAL DISASTER NEEDS A GIT CLIENT
[alias]
# undo `git [add|rm] …`
unstage = reset --mixed
# undo `git commit …`, keep the changes
uncommit = reset --soft HEAD^
# undo `git commit …`, drop the changes ⚠
rollback = reset --hard HEAD^
12