Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

cvs2git

I am trying to migrate a CVS repo to Git using cvs2git. Unfortunately my cvs repo has many branches with regex. While doing git fast import(unix) it reports the error below

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.

How do i resolve this?

like image 781
user2164525 Avatar asked Jan 21 '15 10:01

user2164525


People also ask

What is a valid branch name in git?

In Git, the git branch branch-name command is used to create a new branch called branch-name . Branches should be named something that describes the purpose of the branch. Note that branch names can't contain whitespace: new-feature and new_feature are valid branch names, but new feature is not.

Can you have a in a git branch name?

Actually, if you run the “git branch” with the “-a” option (for “all”), you can see that the upstream branch is still pointing to the “feature” branch. To change the name of the remote, you are going to push the updated references to your remote.


1 Answers

You can find out more here. This is how git verify that your branch name is a valid name.

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 try to create branch with the given name

You must rename the tags in order to get them into git.

like image 96
CodeWizard Avatar answered Oct 11 '22 18:10

CodeWizard