¿Cómo solucionar el error "no se puede bloquear la referencia" mientras se implementa en el servidor usando capistrano?

Intenté implementar una revisión en mi servidor provisional (DigitalOcean) pero recibí el error "no se puede bloquear la referencia". Me topé con este error antes. Tenía una rama 'hotfix' y luego creé la rama 'hotfix / some-hotfix' y cuando traté de llevarla al origen recibí el error. Lo arreglé eliminando la rama 'hotfix' en mi repositorio (BitBucket). Pero ahora lo obtengo al implementar en el servidor provisional.

Stack trace:

SSHKit::Command::Failed: git exit status: 1
git stdout: Fetching origin
error: cannot lock ref 'refs/heads/hotfix/my-hotfix-branch-name': 'refs/heads/hotfix' exists; cannot create 'refs/heads/hotfix/my-hotfix-branch-name'
From bitbucket.org:username/repo-name
! [new branch] hotfix/my-hotfix-branch-name -> hotfix/my-hotfix-branch-name (unable to update local ref)
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
error: Could not fetch origin
git stderr: Nothing written

Intenté ejecutargit remote prune origin pero no ayudó. Estoy atrapado sin ideas aquí

Respuestas a la pregunta(3)

Su respuesta a la pregunta