我正在尝试使用删除远程git分支
git push origin :my_remote_branch
并得到:
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'
这些是我目前的分支
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
关于如何摆脱这一分支的任何想法将不胜感激。
git fetch但这没有帮助。在尝试手动删除文件之前,将尝试搜索更简单的解决方案。
git fetch -p措施摆脱过时的跟踪分支。
git fetch来解决是否修复了该不存在的远程名称?您是否尝试过.git\refs\remotes\origin删除my_remote_branch文件,以查看是否足够?