I'm not sure how it happened, but I somehow created a local git branch with a strange character in the branch name. When I type git branch, one of the branches listed is myBranch<U+0094>. I want to delete this branch, but when I go to delete the branch by copying the exact branch name, the following error happens:
$ git branch -d myBranch<U+0094> bash: syntax error near unexpected token `newline' I am using git bash for Windows. Any help would be appreciated. Thanks in advance!
git branch -d $'myBranch\224bar'. This uses the bash/sh `$'...'`` syntax, which accepts octal escapes.error: branch 'myBranchbar' not found.I'm not sure what the "bar" part is for.barto the end so I could try several variants with\xand\u. Leave out thebarpart for your case!