Add Source  Add Note

Resets the index and working directory. Any changes to tracked files in the working directory since <commit> are discarded.

Related Terms

git reset —hard HEAD~<n> Revert the previous <n> commits on the current branch.

Sources

Name/Link Date

Notes

Notes