Discard local changes in Linux Terminal
Reverts working-tree changes. Cannot be undone.
Shell: Linux Terminal · Category: git · Risk level: dangerous
What you provide
- path — File path
The exact syntax, a worked example, a safer alternative and the flag reference are behind sign-in.
This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.