【问题标题】:How to preserve CVS tags during cvs2git conversion?如何在 cvs2git 转换过程中保留 CVS 标签?
【发布时间】:2015-07-22 10:12:53
【问题描述】:

我正在将许多 CVS 存储库转换为 GIT。这主要是有效的,但是当 CVS 存储库使用标签时,GIT 存储库中会缺少这些标签(虽然是分支 wortk)。

奇怪的是,cvs2svn 输出显示了许多已识别的标签:

cvs2svn Statistics:
------------------
Total CVS Files:               199
Total CVS Revisions:          1223
Total CVS Branches:              0
Total CVS Tags:               9378 
Total Unique Tags:              67   <-----
Total Unique Branches:           0
CVS Repos Size in KB:         2787
Total SVN Commits:             785
First Revision Date:    Thu Mar  3 16:41:25 2011
Last Revision Date:     Fri Jul  3 08:11:25 2015

我的选项模板可以在这里看到:http://paste.ubuntu.com/11919176/

我的命令序列:

cvs2git --options=options.file
mkdir $repo.git
cd $repo.git
git init --bare
git fast-import --export-marks=../git-marks.dat < ../git-blob.dat
git fast-import --import-marks=../git-marks.dat < ../git-dump.dat

cvs2svn版本是2.3.0

我已经用谷歌搜索了几个小时,但仍然不知道缺少什么。 有什么帮助吗?

【问题讨论】:

  • 请在此处发布所有相关内容;不要链接到外部选项文件。
  • 我不能,正文大小超过了允许的最大字符数。
  • 抱歉,我错过了它是一个大模板。我以为这是你写的一个小文件。

标签: cvs2git


【解决方案1】:

没关系。转换实际上导入了所有标签,但我不得不添加一个额外的步骤来将标签上传到服务器:

git push --tags -u origin

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多