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?
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.
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.
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.
You must rename the tags in order to get them into git.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With