Skip to content

Glossary: Git Beyond the Basics

reset

Also written: git reset, --soft, --mixed, --hard

Moves the current branch to another commit. `--soft` keeps changes staged, the default keeps them unstaged and `--hard` discards them.

Where the book teaches it

Related terms

ORIG_HEADreflog