git reset
say it: “GIT REE-set” /ɡɪt ˈriːsɛt/
Moves a branch or adjusts the index and working tree to match a selected commit, depending on its mode.
What does git reset do?
git reset — Moves a branch or adjusts the index and working tree to match a selected commit, depending on its mode.
git reset --mixed HEAD~1
Level: Journeyman · More Git terms at this level
Updated