Keep your Git history intact by automatically running git mv when renaming or moving files in VS Code.
By default, VS Code's file system operations lead to Git seeing a "deleted" file and a "new" untracked file, especially for folders. This breaks the direct line of commit history. Git Move Tracker solves this by automatically executing git mv the moment you move or rename tracked items in the Explorer.
✨ Features
🔄 Automatic git mv: Triggers seamlessly when you move or rename files/folders in the VS Code sidebar.
📜 Preserve Git History: Ensures your commit history remains unbroken and easy to track across renames.
📁 Recursive Folder Support: Moves an entire folder? The extension intelligently handles all tracked files inside correctly.
🔍 Smart Tracking: Only acts on files already tracked by Git. Untracked "new" files are handled by VS Code natively.
📦 Zero Config: Just install it and it works for any Git repository you're working in.
🚀 How it Works
Move or rename a file or folder in the Explorer.
The extension identifies if the item is part of a Git repository.
If it's a tracked file/folder, the extension performs the git mv command for you.
A notification confirms that the Git move was successful.
📋 Requirements
Git must be installed and available in your system's PATH.
The project must be an initialized Git repository.