You can branch from A
, and keep the log as is in your current branch:
(您可以从A
分支,并将日志保留在当前分支中:)
git checkout -b my_branch A
This will create my_branch
branch, with HEAD
pointing to A
.
(这将创建my_branch
分支,其中HEAD
指向A
)
If you now check the log of the branch you created the commit from, you'll see A
, B
and C
:
(如果现在检查创建提交的分支的日志,您将看到A
, B
和C
:)
$ git log <original_branch>
C (HEAD)
B
A
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…