Using the slash character in Git branch name

Posted by faB on Stack Overflow See other posts from Stack Overflow or by faB
Published on 2010-03-26T23:07:32Z Indexed on 2010/03/26 23:13 UTC
Read the original article Hit count: 269

Filed under:
|

I'm pretty sure I saw somewhere in a popular Git project the branches had a pattern like "feature/xyz".

However when I try to create a branch with the slash character, I get an error:

$ git branch foo/bar
error: unable to resolve reference refs/heads/labs/feature: Not a directory
fatal: Failed to lock ref for update: Not a directory

Same problem for (my initial attempt):

$ git checkout -b foo/bar

How does one create a branch in Git with the slash character?

© Stack Overflow or respective owner

Related posts about git

Related posts about branch