当我执行以下命令:
git branch -a | grep my_funny_branch
返回结果为:
remotes/origin/my_funny_branch
但当我执行以下命令:
git branch -d -r origin/my_funny_branch
会出现以下错误信息:
error: remote branch 'origin/my_funny_branch' not found
而当我执行以下命令:
git pull origin master
就会得到更新的代码。
git pull origin master
From ssh://example.com/foo/bar
* branch master -> FETCH_HEAD
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
error: bad ref for refs/remotes/origin/my_funny_branch
error: bad ref for refs/remotes/origin/my_funny_branch
Counting objects: 47339, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (16489/16489), done.
Writing objects: 100% (47339/47339), done.
Total 47339 (delta 30622), reused 47339 (delta 30622)
Rename from '.git/objects/pack/.tmp-7576-pack-15e7c5d209199f384b04dd820a8d625c658f7402.pack' to '.git/objects/pack/pack-15e7c5d209199f384b04dd820a8d625c658f7402.pack' failed. Should I try again? (y/n)
我该如何删除远程分支?
谢谢!