I want to be able to create feature branches like dev/feature/JIRA_KEY_Issue_name
.
When I try to do it using git checkout -b dev/feature/JIRA_KEY_Issue_name
, I get an error like this:
fatal: cannot lock ref 'refs/heads/dev/feature/XXXXXXXXXXXXXXXX': 'refs/heads/dev' exists; cannot create 'refs/heads/dev/feature/XXXXXXXXXXXXXXXX'
When I try create that branch in GitLab, I get the error message that the name is invalid.
It is definitely possible to use branch names like this because one company I know does it (and they use GitLab, too).
Your repository seems to have a branch named dev
.
Remove dev
branch. Then you can create dev/feature/JIRA_KEY_Issue_name
.