Microsoft/vscode

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

Open

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

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)TypeScript (10,221 fork)batch import
feature-requestgithelp wanted

倉庫指標

Star
 (74,848 star)
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.

貢獻者指南