我创建了一个名为common
的文件夹,其中包含一些源文件和文件夹。
现在我想将common
文件夹移动到include
文件夹中,使其看起来像这样:include/common
我尝试了以下操作:
git add include
git mv common/ include/
但是它失败并显示以下错误:
fatal: bad source, source=myrepo/common, destination=myrepo/include
我尝试过
git mv common/ include/common
,但我得到相同的错误。
有什么办法可以实现这个目标吗?
git mv
是等效的。 - Andres Jaan Tack