Git reset
Jump to navigation
Jump to search
Internal
Overview
git reset resets the current working state to the last commit, or the specified commit.
git reset file-name
Discard All Local Changes
git reset --hard HEAD
Resets the index and the working tree to the specified commit, by discarding all local changes to the tracked files.