Git: Discard Changes to Current File

git.discardFile

Discard the active file's uncommitted changes (confirms first).

How to run it

Open the command palette (M-x in the Emacs keymap) and search for Git: Discard Changes to Current File, then press Enter. It has no default keybinding, but you can bind one in Settings → Keymaps.

See also