Reputation: 723
Using GfW I accidentally created a branch whose name begins with <U+0096>
, which seems to be a unicode control-character.
$ git branch
features/#72_some_branch
* features/#73_another_branch
master
<U+0096>features/#73_another_branch
Now, in order to correct this mistake, I need to know how to escape it in the git bash. I tried using the well known Alt+Num key combinations, but that didn't work.
Upvotes: 7
Views: 2108
Reputation: 723
I have to admit, the answer was quite obvious. Using the built-in echo
command of the bash shell, I was able to insert the desired symbol:
git branch -d "$(echo -e '\u0096')features/#73_another_branch"
Upvotes: 11