Originally reported by @mcy-kylin here
Open local clone repository with vscode; Create new branch and input name include ; $ | > &, not tips like xxxx isn't a valid branch name; There special characters are supported like git check-ref-format --branch , but run it with command line will occur exception for example, input branch name test;cd, run git branch test;cd master actually, same case branch name include $ | > & ;characters.
Add filter string include ; $ | > & characters function at check_ref_format ,avoid unknown exceptions when run git branch xxx commond.