Git 在分支上的分离头上获取一系列提交

Git 在分支上的分离头上获取一系列提交,git,Git,我在一个分离的头上犯了五次罪。我不能--设置上游,因为我不在分支上。我是否需要签出一个新的分支,然后逐个挑选并提交这五个分支?罗斯,看起来你可以创建一个新分支 If you want to keep them by creating a new branch, this may be a good time to do so with: git branch new_branch_name <SHA of fifth commit> 如果您想通过创建新分支来保留它们,这可能是一

我在一个分离的头上犯了五次罪。我不能
--设置上游
,因为我不在分支上。我是否需要签出一个新的分支,然后逐个挑选并提交这五个分支?

罗斯,看起来你可以创建一个新分支

If you want to keep them by creating a new branch, this may be a good time
to do so with:

 git branch new_branch_name <SHA of fifth commit>
如果您想通过创建新分支来保留它们,这可能是一个好时机
为此:
git分行新分行名称

罗斯,看起来你可以做一个新的分支

If you want to keep them by creating a new branch, this may be a good time
to do so with:

 git branch new_branch_name <SHA of fifth commit>
如果您想通过创建新分支来保留它们,这可能是一个好时机
为此:
git分行新分行名称