Untitled


SUBMITTED BY: antoineh1

DATE: May 8, 2016, 2 p.m.

FORMAT: Text only

SIZE: 470 Bytes

HITS: 5631

  1. $ git init
  2. $ echo 1 > file; echo 2 >> file
  3. $ git add file
  4. $ git commit -m 1
  5. [master (root-commit) 1373ad1] 1
  6. 1 file changed, 2 insertions(+)
  7. create mode 100644 file
  8. $ git cat-file -p 1373ad1
  9. tree d25d3b6082891168b6787cb20783bd332e5b8f74
  10. ...
  11. $ git cat-file -p d25d3b6
  12. 100644 blob 1191247b6d9a206f6ba3d8ac79e26d041dd86941 file
  13. $ git cat-file -p 1191247 | hexdump -C
  14. 00000000 31 0a 32 0a |1.2.|
  15. 00000004

comments powered by Disqus