• Based on the GitHub approach, you can discard or reset local changes in the working directory and staging area after the current commit using the following two approaches:
» Discard or reset any changes you made in the working directory.
git reset --hard
» Discard or reset any changes you made in staging area after current commit.
git reset HEAD^
» Conduct to reset the branch to a specific commit (<commit_SHA>), discard all changes in the staging area and working directory.
git reset --hard <commit_SHA>