The command git log -1
gives information about the last commit. I am only interested in the number id. Can git
give me this, or do I have to use basic parsing on the output (I know how to do that)?
> git log -1
commit abcdefgh123456789000 (HEAD -> master, origin/master)
Author: ...
...