Git reset

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

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.

Other Use Cases