Como remover origem remota / refs / heads / master

Não me pergunte como, mas consegui obter acidentalmente as seguintes ramificações remotas em um repositório git:

$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  origin/refs/heads/master

Todos estão apontando para o mesmo commit. Como posso remover a lista desnecessária deorigin/refs/heads/master?

Eu tentei fazer o seguinte

$ git push origin :refs/heads/master
error: dst refspec refs/heads/master matches more than one.

Mas, como mostrado, isso gera um erro.

questionAnswers(3)

yourAnswerToTheQuestion