【问题标题】:cvs2svn cvs2git: map cvs users to github userscvs2svn cvs2git: 将 cvs 用户映射到 github 用户
【发布时间】:2014-10-22 22:20:10
【问题描述】:

我使用 cvs2git 将 1 个 cvs repo 转换为 git 并将其推送到 github。一切正常,除了我在 github 上没有看到我的 repo 的任何贡献者。我想知道是否有办法将所有用户从 cvs 带到 github 用户。

【问题讨论】:

标签: github cvs cvs2svn cvs2git


【解决方案1】:

如果您可以再次转换存储库,则应使用选项文件中的author_transforms 字段。

这是我链接到的示例选项文件中的示例:

author_transforms={
    'jrandom' : ('J. Random', 'jrandom@example.com'),
    'mhagger' : 'Michael Haggerty <mhagger@alum.mit.edu>',
    'brane' : (u'Branko Čibej', 'brane@xbc.nu'),
    'ringstrom' : 'Tobias Ringström <tobias@ringstrom.mine.nu>',
    'dionisos' : (u'Erik Hülsmann', 'e.huelsmann@gmx.net'),

    # This one will be used for commits for which CVS doesn't record
    # the original author, as explained above.
    'cvs2git' : 'cvs2git <admin@example.com>',
    }

示例文件有更多细节。

如果您需要在 github 中保留现有的 repo,您​​可以对提交历史进行某种形式的重写,但我对此一无所知。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-22
    • 2021-01-01
    • 1970-01-01
    • 2011-09-15
    • 1970-01-01
    相关资源
    最近更新 更多