Microsoft/vscode

Git - add support for `git restore`

Open

#177,569 opened on Mar 18, 2023

 (4 comments) (1 reaction) (1 assignee)TypeScript (39,847 forks)batch import
feature-requestgithelp wanted

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

There needs to be a command "Git: Restore" which would discard local changes to the file, as if I would have entered git restore … in the terminal.

As an example of other commands, there already exists a command "Git: Stage Changes" which stages the changes for the current file, as if I would have entered git add … in the terminal.

"Git: Restore" is a very commonly needed command, but it seems to be missing.

See:

Contributor guide