简体   繁体   English

Git - 致命:分支名称不符合GIT标准

[英]Git - fatal: Branch name doesn't conform to GIT standards

I am trying to migrate a CVS repo to Git using cvs2git. 我正在尝试使用cvs2git将CVS repo迁移到Git。 Unfortunately my cvs repo has many branches with regex. 不幸的是我的cvs repo有许多分支与正则表达式。 While doing git fast import(unix) it reports the error below 在执行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

I tried to delete these tags, but no luck. 我试图删除这些标签,但没有运气。 i think it is taking the entire history. 我认为这是整个历史。 I am not able to import the HEAD alone also. 我也无法单独导入HEAD。

How do i resolve this? 我该如何解决这个问题?

You can find out more here . 你可以在这里找到更多。 This is how git verify that your branch name is a valid name. 这就是git验证您的分支名称是否有效的名称。

The problem is the [] characters. 问题是[]字符。 Try to locally create branch with those names and you will see the error. 尝试使用这些名称在本地创建分支,您将看到错误。

Here is a detailed post(s) abot what and how to do it. 是一个详细的帖子,有什么以及如何做。

Git尝试使用给定名称创建分支

You must rename the tags in order to get them into git. 您必须重命名标记才能将它们转换为git。

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

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