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.

贡献者指南