admin管理员组文章数量:1430512
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.
本文标签:
版权声明:本文标题:version control - How to properly handle Git file moves in Visual Studio 2019 when using cutpaste? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745557512a2663272.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论