本文共 576 字,大约阅读时间需要 1 分钟。
本文翻译自:
Possible Duplicate / a more recent/less clear question 可能重复/更近期/不太清楚的问题
I have a Git branch called jzbranch
and have an old commit id: a9c146a09505837ec03b
. 我有一个名为jzbranch
的Git分支,并且有一个旧的提交ID: a9c146a09505837ec03b
。
How do I create a new branch, justin
, from the information listed above? 如何根据上面列出的信息创建一个新分支justin
?
参考:
git checkout -b justin a9c146a09505837ec03b
This will create a new branch called 'justin' and check it out. 这将创建一个名为'justin'的新分支并将其检出。
git branch justin a9c146a09505837ec03b
This just creates the branch without checking it out. 这只是创建分支而不检查它。
转载地址:http://mscnb.baihongyu.com/