Estou tentando excluir um ramo remoto do git com
git push origin :my_remote_branch
e obtendo:
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'
estes são meus ramos atuais
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
Qualquer idéia de como me livrar desse ramo seria apreciada.
git fetchmas isso não ajudou. Tentará procurar uma solução mais direta antes de tentar excluir o arquivo manualmente.
git fetch -ppara se livrar de ramos de rastreamento obsoletos.
git fetchver se ele corrigia esse nome remoto inexistente? Você tentou entrar.git\refs\remotes\origine excluir omy_remote_brancharquivo, para ver se isso é suficiente?