最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

version control - How to properly handle Git file moves in Visual Studio 2019 when using cutpaste? - Stack Overflow

programmeradmin0浏览0评论

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:

  1. Finding deleted files
  2. Locating their old positions and moving them back
  3. 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论