What command can I use to print out the commit id of HEAD?
This is what I\'m doing by hand:
$ cat .git/HEAD ref: refs/heads/v3.3 $ cat .git/refs/head
You can use this command
$ git rev-list HEAD
You can also use the head Unix command to show the latest n HEAD commits like
head
n
HEAD
$ git rev-list HEAD | head - 2