You can create the branch via a hash:
(您可以通过哈希创建分支:)
git branch branchname <sha1-of-commit>
Or by using a symbolic reference:
(或使用符号引用:)
git branch branchname HEAD~3
To checkout the branch when creating it, use
(要在创建分支时签出分支,请使用)
git checkout -b branchname <sha1-of-commit or HEAD~3>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…