简体   繁体   English

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

[英]No files in git folder after CVS import

we needed to convert CVS to GIT yesterday. 我们昨天需要将CVS转换为GIT。 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 . 除了我的CVS中没有模块,一切都进行得很好,因此我不知道在这里描述的是哪个模块可以签出。

With the help of another tutorial everything worked fine. 另一个教程的帮助下,一切正常。

I sued CVSROOT (immediate direcotry under $CVSROOT) as module name and everything worked fine. 我以CVSROOT($ CVSROOT下的直接目录)为模块名称,一切正常。

After cloning the git repository now, I can see all the files in Eclipse (Egit). 现在克隆了git仓库之后,我可以在Eclipse(Egit)中看到所有文件。

But when I look in the created git folder I only see the following folders/files 但是当我查看创建的git文件夹时,我只会看到以下文件夹/文件

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 eg (PHP/CSS/Javascript files). 我在哪里可以找到git存储库中的实际文件,例如(PHP / CSS / Javascript文件)。

Is there eventually a link somewhere in the Git files to my "old" CVS files? 最终在Git文件中的某个地方是否有指向我的“旧” CVS文件的链接?

Hope somebody can help. 希望有人能帮忙。

Regards 问候

Jeremy 杰里米

Those files (branches, config, etc.) are the actual git repository. 这些文件 (分支,配置等)是实际的git存储库。 You need to use the clone command to checkout the repository into a sandbox you can use: 您需要使用clone命令将存储库检出到可以使用的沙箱中:

git clone my_repo my_sandbox

where my_repo is the directory containing those files . 其中my_repo是包含这些文件的目录。 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). 将创建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.) (顺便说一下,签出沙箱后,其中将有一个.git目录,其中包含与那些文件相同的文件结构。这使Git能够以完全分布式的方式工作,并允许您切换到不同的分支并提交更改无需一直连接到网络。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM