[英]How to move a project to another folder by Git in Visual Studio
I have solution that looks like this in Visual Studio and I committed them in Git:我在 Visual Studio 中有这样的解决方案,我在 Git 中提交了它们:
--project.a
--project.b
How should I move them (to for example srcFolder
) to look like the following without loosing Git history:我应该如何在不丢失 Git 历史记录的情况下将它们(例如
srcFolder
)移动到如下所示:
--srcFolder
---project.a
---project.b
Apparently " Git will automatically detect the move/rename if your modification is not too severe. ".显然“ 如果您的修改不太严重,Git 将自动检测移动/重命名。 ”。
Note the very important comment to that answer by marczych
that if you first stage the changes they will then show up as a move.请注意
marczych
对该答案的非常重要的评论,即如果您首先进行更改,那么它们将显示为移动。
(This operation worked fine in Visual Studio 2019.) (此操作在 Visual Studio 2019 中运行良好。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.