show v1.01 #tag name git show master #分⽀支名 git show HEAD #当前分⽀支最后⼀一次提交 git show HEAD^ #当前分⽀支的前⼀一次提交 等同于HEAD~1 git show HEAD^^ #当前分⽀支的上上次提交 等同于HEAD~2 git show HEAD~3 #当前分⽀支的倒数第三次提交 等同于HEAD^^^ git show HEAD@{10} #by reflog PS:版本标识详解 https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html
feature1 master fast forwarding non fast forwarding B C A master D E F feature1 G master $git merge feature1 fast forwarding情况不走ff $git merge --no-ff feature1 B C A master D E F feature1 G master
1 pick 38149bb http: escape unsafe characters in request path¬ 2 pick 31d0d5a test: add extra checks¬ 3 ¬ 4 # Rebase 881ef7c..31d0d5a onto 881ef7c¬ 5 #¬ 6 # Commands:¬ 7 # p, pick = use commit¬ 8 # r, reword = use commit, but edit the commit message¬ 9 # e, edit = use commit, but stop for amending¬ 10 # s, squash = use commit, but meld into previous commit¬ 11 # f, fixup = like "squash", but discard this commit's log message¬ 12 # x, exec = run command (the rest of the line) using shell¬ 13 #¬ 14 # These lines can be re-ordered; they are executed from top to bottom.¬ 15 #¬ 16 # If you remove a line here THAT COMMIT WILL BE LOST.¬ 17 # However, if you remove everything, the rebase will be aborted.¬ 18 #¬ 19 # Note that empty commits are commented out¬ ~ "~/Projects/node/.git/rebase-merge/git-rebase-todo" 19L, 700C B C A master D master~2 HEAD
01b61c3 tree 822812 parent tree c260b5b subdir READ M E.m d blob 0fa1294 demo.txt commit eb490b0 parent tree 9aa45fe subdir blob 7688d56 README.md master HEAD