建立新的參考

執行 git checkout -b <refname> 將建立一個新的 ref,指向當前的 commit。

$ cat .git/head
1f324a

$ git checkout -b TestBranch

$ cat .git/refs/heads/TestBranch
1f324a