Information Technology Reference
In-Depth Information
2-8. Exploring the history with a git log
command
Problem
You want to print the following information about a jQuery repository:
• The complete list of the revisions in the repository
• The shortened and simplified list of the latest revisions in the repository
• The list of revisions by John Resig
• The list containing last five revisions in 2012
Solution
Enter the directory git-recipes/02-01/jquery/ :
$ cd git-recipes/02-01/jquery
To print the complete list of revisions in the repository execute:
$ git log
You will see that the output is similar to the one presented in Listing 2-4 . This is the
complete list of revisions that are accessible from the current revision. You can scroll
the output with space and arrow keyboard keys. Press q to quit the git log .
Listing 2-4. The output of git log command
commit 18cccd04a6f69018242bce96ef905bc5d3be6ff8
Author: Richard Gibson < richard.gibson@gmail.com >
Date:
Mon Apr 29 13:31:59 2013 -0400
Fix #13803: domManip remote-script evaluation per 1.9
(AJAX dataType "script")
 
 
Search WWH ::




Custom Search