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:

貢獻者指南