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 --hardThis can delete files or discard work.
CopyCommandSummary
Throws away all local changes and resets to the last commit.
Command
Windows PowerShell
git reset --hardThis can delete files or discard work.