【问题标题】:Git - fatal: Branch name doesn't conform to GIT standardsGit - 致命:分支名称不符合 GIT 标准
【发布时间】:2015-01-21 10:10:13
【问题描述】:

我正在尝试使用 cvs2git 将 CVS 存储库迁移到 Git。 不幸的是,我的 cvs repo 有许多带有正则表达式的分支。 在执行 git fast import(unix) 时,它会报告以下错误

fatal: Branch name doesn't conform to GIT standards: refs/tags/Release21_3_4_0_0_3_7_10[3_8_4_3]
fast-import: dumping crash report to .git/fast_import_crash_27083

我试图删除这些标签,但没有成功。我认为这是整个历史。 我也无法单独导入 HEAD。

我该如何解决这个问题?

【问题讨论】:

标签: git cvs2git


【解决方案1】:

您可以找到更多here。这是 git 验证您的分支名称是有效名称的方式。

问题在于 [] 字符。 尝试使用这些名称在本地创建分支,您将看到错误。

Here 是一篇关于什么和如何做的详细帖子。

您必须重命名标签才能将它们放入 git。

【讨论】:

    猜你喜欢
    • 2016-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多