Search code examples
gitatlassian-sourcetreegit-flow

Why Sourcetree does not support the use of '/' in Git-flow branch names?


When I try to create a new feature I press Git-flow -> Start New Feature and if I chose a branch name like this: model/user in the end the complete branch name should be feature/model/user but instead I get an error:

The name is invalid. Ref names must follow git ref-format rules: 
https://www.kernel.org/pub/software/scm/git/docs/git-check-ref-format.html
Additionally Sourcetree does not support the use of '/' in Git-flow branch names
Completed with errors, see above.
  • SourceTree version: 3.1.3

  • Git-flow version: 1.11.0 (AVH Edition)

Before this update branch names could contain '/' and were displayed as an arborescent structure.

If I use git flow commands it works and new branch appears in SourceTree.

Is this a bug or it's a normal behaviour?


Solution

  • I believe, updating to the latest Git flow version should solve your problem. I had similar issues when using an older version recently - updating Git flow made the problem disappear.