Suppose I have two main branches: master
and dev
. All of my development efforts are branched off of dev
then merged back into dev
, then eventually into releases then merged into master
. I would like to name dev
sub-branches with a dev/
prefix to show what they were branched from, so perhaps these are some branches:
master
dev
dev/new-feature
dev/improved-thing
dev/more-cowbell
But I cannot do this, instead getting the error:
error: unable to create directory for .git/refs/heads/dev/new-feature
fatal: Failed to lock ref for update: No such file or directory
Presumably this is because dev
is an actual branch. Is there a way to make this work, or is there a better way to show this in the branch name? Thanks,