Following this question, when moving files in Visual Studio 2019 via cut/paste, Git doesn't properly track the file movement - it marks the file as deleted in the original location and untracked in the new location.
I've created a cmd batch script to fix this by:
- Finding deleted files
- Locating their old positions and moving them back
- Then using
git mv
to properly move them to the new location
This seems to be working, but I'm looking for a more proper/integrated solution within Visual Studio.
Question: What's the recommended way to move files in Visual Studio 2019 while maintaining proper Git history?
I'm specifically interested in Visual Studio's built-in features or extensions that might handle this better.