Skip to Main Content
Pragmatic Version Control Using Git
book

Pragmatic Version Control Using Git

by Travis Swicegood
December 2008
Intermediate to advanced content levelIntermediate to advanced
184 pages
4h 47m
English
Pragmatic Bookshelf
Content preview from Pragmatic Version Control Using Git

6.1 Inspecting Git’s Log

The commit log is the most common way for you to inspect what has happened to your repository. Git shows each new commit’s log entry, along with who made the commit, when, and optionally the changes that were made.

It’s displayed in a reverse-chronological order, like a blog. You can provide all sorts of parameters to filter the log, but let’s start with the basics. Just type git log at the command prompt from within your working tree:

 
​prompt> git log
 
​commit 0bb3dfb752fa3c890ffc781fd6bd5dc5d34cd3be​
 
​Author: Travis Swicegood <development@domain51.com>​
 
​Date: Sat Oct 4 11:06:47 2008 -0500​
 
​​
 
​ add link to twitter​
 
​​
 
​commit 18f822eb1044761f59aebaf7739261042ae10392​ ...
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: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Pragmatic Guide to Git

Pragmatic Guide to Git

Travis Swicegood
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

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

Publisher Resources

ISBN: 9781680500189Errata Page