当我表演时branch -a:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/hello
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
然后我删除了分支:
$ git branch -r -D origin/hello
Deleted remote branch origin/hello (was c0cbfd0).
Run Code Online (Sandbox Code Playgroud)
现在我明白了:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
分支"你好"已被删除.但是当我拿到:
$ 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
Run Code Online (Sandbox Code Playgroud)
我很困惑.
我认为它已被删除,但它仍然存在.