【发布时间】:2020-12-12 09:58:21
【问题描述】:
我目前的文件结构如下所示:
# C:\Repositories\VisualStudio\MyProject
.git # repository is one level above clientapp and includes other folders/paths than clientapp
afolder
clientapp
file1
file2
现在我想将clientapp 文件夹移动到新位置并将其重命名为frontend。然后我只想为frontend 创建一个新的存储库。到这里没问题:
# inside C:\Repositories\MyProject\frontend (no more VisualStudio in the path!)
.git
<all the frontend folders and files>
现在问题来了:当然,我现在丢失了原始 clientapp(现在:frontend)文件夹的历史记录,因为我创建了一个新的存储库。有什么方法可以将有关原始clientapp 文件夹的提交复制到我的frontend 新存储库?
【问题讨论】:
标签: git