当我执行branch -a
:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/hello
remotes/origin/master
然后我删除分支:
$ git branch -r -D origin/hello
Deleted remote branch origin/hello (was c0cbfd0).
现在我明白了:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
分支“hello”已被删除。但是当我获取时:
$ git fetch
From localhost:project
* [new hello] hello -> origin/hello
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/hello
remotes/origin/master
我很混乱。
我认为它已被删除,但它仍然存在。