diff --git a/src/commits.md b/src/commits.md index ba96d4a..21289a0 100644 --- a/src/commits.md +++ b/src/commits.md @@ -80,6 +80,9 @@ git reset # Selectively unstage changes to files. git reset -p +# Hard reset the current branch back one commit. +git reset --hard HEAD^ + # Discard changes to a file git checkout --