Git:拉选定的提交

时间:2014-10-27 08:55:19

标签: git

它可能是重复的,但我的服务器现在是一行的,我只能找到非常繁琐的答案。

所以我需要提交164183012b178c2f68891e1bff24e5c9a0c97222。我该怎么做?

2 个答案:

答案 0 :(得分:2)

查看本教程:https://www.atlassian.com/en/git/tutorial/undoing-changes#!checkout

我认为你只需要 git checkout 164183012b178c2f68891e1bff24e5c9a0c97222

答案 1 :(得分:2)

使用git cherry-pick

git cherry-pick 04566389ae36651daf3dfa117a1088d594632370

将特定提交提取到当前分支。