当我尝试git push origin :foo-branch'
时,我收到错误:
error: unable to delete 'foo-branch': remote ref does not exist
error: failed to push some refs to 'git@bitbucket.org:username/repo-name.git'
我知道分支存在,因为:
git log --all
; 还有什么,甚至在我运行git remote prune origin
之后,当我运行git branch -a
时,我仍然可以看到它:
remote/origin/foo-branch
我也试过git fetch -p origin
但仍然无法解决这个问题。