原文链接:https://blog.csdn.net/allanGold/article/details/102478157
git reflog show 分支名git reflog --date=local | grep 分支名
git reflog --date=local | grep 分支名
$ git reflog --date=local | grep release3
5c50761 HEAD@{Thu Jun 29 12:53:45 2023}: checkout: moving from release2 to release3
git reflog show 分支名
$ git reflog show release3
1ffdd7c (HEAD -> release3) release3@{0}: commit: update
17c9f82 release3@{1}: commit: update
00f6d6a release3@{2}: commit: update
5c50761 (origin/release1, origin/main, release2, release1, release, main) release3@{11}: branch: Created from HEAD