无意中创建了一个分支。我想删除它。事实上,我以为我上周删除了它,并且它没有出现在 bitbucket 的搜索中,所以我倾向于认为问题只是在我的本地仓库中。为什么这样做后分支仍然出现在我的本地仓库中?
$ git branch -d ebc_193_157_154_order_creation_xsd_validation_and_refactored_code
error: branch 'ebc_193_157_154_order_creation_xsd_validation_and_refactored_code' not found.
$ git push bitbucket :ebc_193_157_154_order_creation_xsd_validation_and_refactored_code
error: unable to delete 'ebc_193_157_154_order_creation_xsd_validation_and_refactored_code': remote ref does not exist
error: failed to push some refs to 'bitbucket.org:trueaction/eb2c'
它仍然存在:
$ git branch -r | grep ebc_193
bitbucket/ebc_193_157_154_order_creation_xsd_validation_and_refactored_code
$ git branch -a | grep ebc_193
remotes/bitbucket/ebc_193_157_154_order_creation_xsd_validation_and_refactored_code
我必须做什么才能摆脱它?