Microsoft/vscode

Git - Use `git mv` when moving and renaming files

開放

#273,757 建立於 2025年10月28日

 (2 則留言) (0 個反應) (1 位負責人)TypeScript (39,847 個分叉)batch import
feature-requestgithelp wanted

倉庫指標

星標
 (184,936 顆星)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Currently moving and renaming files through the vscode explorer results in git detecting it as a file removal and file addition, even though git has the git mv command which keeps the history of the file.

So it would be nice if renaming and moving a file through the vscode explorer uses git mv when used in a workspace with a git repository.

貢獻者指南