I know this isn\'t strictly a programming question, but it is related to git. I accidentally have created a branch in git called --track
(I got the order of opt
The double hyphen didn't work for me on remote with a branch name containing double quotes and ampersands. However wrapping the name quotes and escaping the contained quotes did the job:
git push origin --delete "123-my-branch-&-some\"quoted-text\""
and locally:
git branch -D "123-my-branch-&-some\"quoted-text\""