git

  1. git hash-object -w --stdin
  2. git cat-file -p commit