Microsoft/vscode

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

Open

#273,757 opened on Oct 28, 2025

 (2 comments) (0 reactions) (1 assignee)TypeScript (39,847 forks)batch import
AndroidGood first issueNight ModeUIfeature-requestgithelp wanted

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide