Running git checkout -b <refname> will create a new ref that points to the current commit.
git checkout -b <refname>
commit
$ cat .git/head 1f324a $ git checkout -b TestBranch $ cat .git/refs/heads/TestBranch 1f324a