【发布时间】:2021-01-06 01:04:07
【问题描述】:
当我运行git log 时,我看到了:
commit d0fa4410393w92ce6ede2ea26fa2fb74z2e5f1bz (HEAD -> notificationControls, origin/notificationControls)
Author: stufezic-dev <ninjahero@gmail.com>
Date: Sat Sep 19 12:32:45 2020 +0545
lockscreen controls working, notification updates yet to fix
commit 2e11d85350a741d6992875e949a0a77abbeb8fde (mainadjust, commitBranch)
Author: stufezic-dev <ninjahero@gmail.com>
Date: Tue Sep 15 23:30:27 2020 +0545
notification and lockscreen controls using mediaSession: initiated
commit 2e11d85350a741d6992875e949a0a77abbeb8fde (mainadjust, commitBranch)
Author: stufezic-dev <ninjahero@gmail.com>
Date: Tue Sep 14 23:30:27 2020 +0545
notification and lockscreen controls using mediaSession: initiated
...
如何提取倒数第二个或倒数第三个提交,而不是最新提交?我只知道 1 个命令:git pull master origin,我正在考虑如何提取任何提交而不是最新提交。
【问题讨论】:
-
通过命令
git pull origin master,您将远程主分支上的所有提交拉到您当前的本地银行,现在您想要什么?直到倒数第二个提交并跳过最新的提交? -
这实际上是
git log所说的?您是否真的在 24 小时内准确地创建了两次相同的提交?
标签: git git-commit git-pull