This is an old revision of the document!


A small sample of Git revisions; different ways to refer to commits (using Linux kernel source):

HEAD (commonly the default) refers to the commit at the tip of the current branch:

$ git show
$ git show HEAD

Commits are also reflected in branch or tag names:

$ git show master
$ git show v4.16

And of course you can always use the full commit ID:

$ git show 0adb32858b0bddf4ada5f364a84ed60b196dbcda

You can use ''git rev-p

  • git_revisions.1527159456.txt.gz
  • Last modified: 2018/05/24 10:57
  • by rpjday