Microsoft/vscode

Git - add support for `git restore`

开放

#177,569 创建于 2023年3月18日

 (4 条评论) (1 个反应) (1 位负责人)TypeScript (39,847 个派生)batch import
feature-requestgithelp wanted

仓库指标

星标
 (184,936 个星标)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

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:

贡献者指南