Add command to reset last commit

This commit is contained in:
James Skemp 2023-10-13 17:19:59 -05:00
parent 5b1d3880fb
commit 45158cf82e
1 changed files with 3 additions and 0 deletions

View File

@ -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 -- <file>