以下命令:
$ git branch -a
产量
* develop
master
remotes/origin/HEAD -> origin/develop
remotes/origin/develop
remotes/origin/feature/foo
remotes/origin/master
但我不想要remotes/origin/feature/foo
分支。我能做些什么来得到这个?我该如何删除它?
我试过这个:
git push origin --delete origin/feature/foo
但我明白了:
error: unable to push to unqualified destination: origin/feature/foo
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 '...my remote repo...'
有任何想法吗?非常感谢 :)。