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.
Glossary: Git Beyond the Basics
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.