CopyCommandCopyCommand
Default

git reset --hard

Summary

Throws away all local changes and resets to the last commit.

Command

Windows PowerShell

Run in PowerShellWindows PowerShell
git reset --hard

This can delete files or discard work.

Related commands