Failed to create branch 'feature_1/experiment_1': invalid reference name 'feature_1'

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

If the branch "a" is created and you need to create a branch "a/b", then you will not be able to do this.

Error: Failed to create branch 'feature_1/experiment_1': invalid reference name 'feature_1'

Steps to reproduce

Web:

  1. Create branch "feature_1" from default branch.
  2. Create branch "feature_1/experiment_1" from branch "feature_1".

Git:

  1. git checkout -b feature_1
  2. git push --set-upstream origin feature_1
  3. git checkout -b feature_1/experiment_1
  4. git push --set-upstream origin feature_1/experiment_1

Example Project

test-gitlab

What is the current bug behavior?

Such branches should be created.

What is the expected correct behavior?

Such branches should be created.

Relevant logs and/or screenshots

Снимок_экрана_в_2021-09-05_09-38-22

and note that the underscore character is not visible.

Edited Sep 27, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading