Microsoft/vscode

Git - add support for `git restore`

Offen

#177.569 geöffnet am 18.03.2023

 (4 Kommentare) (1 Reaktion) (1 zugewiesene Person)TypeScript (39.847 Forks)batch import
feature-requestgithelp wanted

Repository-Metriken

Stars
 (184.936 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

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