Microsoft/vscode

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

Ouverte

#273 757 ouverte le 28 oct. 2025

 (2 commentaires) (0 réaction) (1 personne assignée)TypeScript (39 847 forks)batch import
feature-requestgithelp wanted

Métriques du dépôt

Stars
 (184 936 étoiles)
Métriques de merge PR
 (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)

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.

Guide contributeur