运行git checkout -b <refname>将创建一个指向当前的新引用commit。
$ cat .git/head 1f324a $ git checkout -b TestBranch $ cat .git/refs/heads/TestBranch 1f324a