Microsoft/vscode

Git - add support for `git restore`

Aberta

#177.569 aberto em 18 de mar. de 2023

 (4 comentários) (1 reação) (1 responsável)TypeScript (39.847 forks)batch import
feature-requestgithelp wanted

Métricas do repositório

Stars
 (184.936 estrelas)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 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:

Guia do colaborador