可以使用以下命令
git reflog
52a0ed7 HEAD@{25}: checkout: moving from vipv2 to 52a0ed74630feeb471e59d8d100304b61abcbce1^0 b6f1023 HEAD@{26}: commit: 抽奖消耗积分总计表 2621edf HEAD@{27}: rebase finished: returning to refs/heads/vipv2 2621edf HEAD@{28}: pull --rebase origin vipv2: vip抽奖算法、领取vip礼券 c428408 HEAD@{29}: checkout: moving from vipv2 to c4284082fa64a14bacc9b0fff07277fc911fdf5a^0 b1d4dd2 HEAD@{30}: commit: vip抽奖算法、领取vip礼券 1af22e3 HEAD@{31}: rebase finished: returning to refs/heads/vipv2 1af22e3 HEAD@{32}: checkout: moving from vipv2 to 1af22e3df26beb6294280c682d8faab13d2e4d93^0 926712d HEAD@{33}: rebase finished: returning to refs/heads/vipv2
找到丢失的提交号
然后最傻瓜的方式可以使用
git cherry-pick b1d4dd2