Sto cercando di eliminare un ramo git remoto con
git push origin :my_remote_branch
e ottenere:
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'
questi sono i miei rami attuali
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
Qualche idea su come sbarazzarsi di questo ramo sarebbe apprezzata.
git fetchma che non ha aiutato. Proverà a cercare una soluzione più semplice prima di provare a eliminare il file manualmente.
git fetch -pper sbarazzarti dei rami di localizzazione non aggiornati.
git fetcha vedere se è stato corretto quel nome remoto inesistente? Hai provato ad andare nel tuo.git\refs\remotes\origined eliminare ilmy_remote_branchfile, per vedere se è abbastanza?