$ git branch
develop
* feature/bug_76
master
$ git branch -r
origin/HEAD -> origin/master
origin/develop
origin/feature/implement_IBResponder
origin/master
origin/origin
origin/sculptor_strategy
我本地的代码很好。我想删除原始版本上所有的垃圾,所以我尝试:
$ git push origin :origin/sculptor_strategy
error: unable to delete 'origin/sculptor_strategy': remote ref does not exist
error: failed to push some refs to 'git@gitlab:pitbull.git'
我做错了什么?
(猜测) 是本地缓存源代码过期了吗?
答案
结果证明这是一个误导 - 问题在于,我的本地缓存过期了,正如我所怀疑的那样。以下两个答案都可以正常工作。
git push origin :sculptor_strategy
吗? - ConcurrentHashMap