Estoy tratando de eliminar una rama remota de git con
git push origin :my_remote_branch
y obteniendo:
error: unable to push to unqualified destination: my_remote_branch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@example.com:/myrepo'
estas son mis ramas actuales
git branch -a
* develop
master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/my_remote_branch
git branch -r --merged
origin/HEAD -> origin/master
origin/develop
origin/master
Cualquier idea sobre cómo puedo deshacerme de esta rama sería apreciada.
git fetchpero eso no ayudó. Intentará buscar una solución más sencilla antes de intentar eliminar el archivo manualmente.
git fetch -ppara deshacerse de las ramas de seguimiento obsoletas.
git fetchver si corrigió ese nombre remoto no existente? ¿Intentaste entrar.git\refs\remotes\originy eliminar elmy_remote_brancharchivo para ver si eso es suficiente?