I've been unable to delete this branch from the origin directly, or by creating a local copy.
Sample branch name: sample-branch|name
.
A git pull
returns Unable to create 'D:/my/git/repo/.git/refs/remotes/origin/sample-branch|name.lock': Invalid argument: Invalid argument
A git checkout sample-branch|name
returns error: pathspec 'sample-branch|name' did not match any file(s) known to git.
Using the git branch -d --.... suggestions here, have also failed.
Is there an alternative command or a change to the existing commands that can be used in this instance?
Edit 1: I have tried with and without quotes