CVS导入后git文件夹中没有文件

发布于 2024-10-04 04:03:18 字数 733 浏览 1 评论 0原文

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

另一个教程的帮助下一切工作得很好。

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

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

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

分支(文件夹)
配置
描述

挂钩(文件夹)
索引
信息(文件夹)
日志(文件夹)
对象(文件夹)
refs(文件夹)

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

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

希望有人可以帮忙。

问候

杰里米

we needed to convert CVS to GIT yesterday. Everything went fine except that I didn't had modules in my CVS therefore I didn't know what module to check out as descibed here.

With the help of another tutorial everything worked fine.

I sued CVSROOT (immediate direcotry under $CVSROOT) as module name and everything worked fine.

After cloning the git repository now, I can see all the files in Eclipse (Egit).

But when I look in the created git folder I only see the following folders/files

braches (folder)
config
description
HEAD
hooks (folder)
index
info (folder)
logs (folder)
objects (folder)
refs (folder)

where can I find the actual files that in the git repository e.g. (PHP/CSS/Javascript files).

Is there eventually a link somewhere in the Git files to my "old" CVS files?

Hope somebody can help.

Regards

Jeremy

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别靠近我心 2024-10-11 04:03:19

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

git clone my_repo my_sandbox

其中 my_repo 是包含这些文件的目录。 my_sandbox 目录将被创建,并将包含您的原始 CVS 文件(可能来自 HEAD 分支,具体取决于您如何进行 CVS 导入)。

(顺便说一句,一旦您的沙箱被签出,其中就会有一个 .git 目录,其中包含与那些文件相同的文件结构。这使得 Git 能够在完全分布式方式,将允许您切换到不同的分支并提交更改,而无需不断连接到网络。)

Those files (branches, config, etc.) are the actual git repository. You need to use the clone command to checkout the repository into a sandbox you can use:

git clone my_repo my_sandbox

where my_repo is the directory containing those files. The my_sandbox directory will be created and will contain the your original CVS files (probably from the HEAD branch, depending on how you did your CVS import).

(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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文