Skip to Content
Git Essentials ??? Second Edition - Second Edition
book

Git Essentials ??? Second Edition - Second Edition

by Ferdinando Santacroce
November 2017
Beginner
238 pages
5h 58m
English
Packt Publishing
Content preview from Git Essentials ??? Second Edition - Second Edition

Going deeper

We analyzed a commit, and the information supplied by a simple git log; but we are not yet satisfied, so go deeper and see what's inside.

Using the git log command again, we can enable x-ray vision using the --format=raw option:

[14] ~/grocery (master)
$ git log --format=raw
commit a57d783905e6a35032d9b0583f052fb42d5a1308
tree a31c31cb8d7cc16eeae1d2c15e61ed7382cebf40
author Ferdinando Santacroce <ferdinando.santacroce@gmail.com> 1502970693 +0200
committer Ferdinando Santacroce <ferdinando.santacroce@gmail.com> 1502970693 +0200

Add a banana to the shopping list

This time the output format is different; we can see the author and committer, as we saw before, but in a more compact form; then there is the commit message, but something ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git Pocket Guide

Git Pocket Guide

Richard E. Silverman
Version Control with Git, 2nd Edition

Version Control with Git, 2nd Edition

Jon Loeliger, Matthew McCullough

Publisher Resources

ISBN: 9781787120723Supplemental Content