Not a valid git branch name

后端 未结 1 1269
余生分开走
余生分开走 2021-01-15 01:03

I am trying to create a new branch under feature tag of my repo, I am using following to do this:

 git branch \"feature/BA-302-[AU]Intl-BCard\"                      


        
相关标签:
1条回答
  • 2021-01-15 01:53

    [ is not allowed in a branch name. See man git-check-ref-format or here for more details.

    In zsh, [...] defines a character class the shell tries to match. If there's no match, you get the error zsh: no matches found. Using quotes prevents the matching. In bash, similar behaviour can be turned on by running shopt -s failglob.

    0 讨论(0)
提交回复
热议问题