0

我们昨天需要将 CVS 转换为 GIT。一切都很顺利,只是我的 CVS 中没有模块,因此我不知道要按照此处所述检查哪个模块。

在另一个教程的帮助下,一切正常。

我以模块名称起诉 CVSROOT($CVSROOT 下的直接目录),一切正常。

现在克隆 git 存储库后,我可以看到 Eclipse (Egit) 中的所有文件。

但是当我查看创建的 git 文件夹时,我只看到以下文件夹/文件

braches (文件夹)
配置
描述
HEAD
hooks (文件夹)
index
info (文件夹)
logs (文件夹)
objects (文件夹)
refs (文件夹)

我在哪里可以找到 git 存储库中的实际文件,例如(PHP/CSS/Javascript 文件)。

Git 文件中的某个地方最终是否有指向我的“旧”CVS 文件的链接?

希望有人可以提供帮助。

问候

杰里米

4

1 回答 1

1

这些文件(分支、配置等)是实际的 git 存储库。您需要使用clone命令将存储库签出到可以使用的沙箱中:

git clone my_repo my_sandbox

my_repo包含这些文件的目录在哪里。该my_sandbox目录将被创建并包含您的原始 CVS 文件(可能来自 HEAD 分支,取决于您如何导入 CVS)。

(Incidentally, once your sandbox is checked out, there will be a .git directory in it containing the same file structure as those files. This allows Git to work in a completely distributed manner and will allow you to switch to different branches and commit changes without the need to be constantly connected to a network.)

于 2010-11-26T11:04:01.680 回答