Information Technology Reference
In-Depth Information
Every line concerns one revision and contains a short abbreviated name SHA-1 and
the comment. If possible, the abbreviations are shortened to four characters:
18cc
55e3
78c8
When necessary, more characters are used:
3a619
ad71f
Using -10 parameter, the output is restricted to the last 10 revisions only.
The command shown in Listing 2-6 prints the revisions that were authored by John
Resig.
Listing 2-6. Revisions authored by John Resig
$ git log --author="John Resig"
The parameters shown in Listing 2-5 and Listing 2-6 can be used together. The com-
mand:
$ git log --abbrev-commit --abbrev=4 --pretty=oneline -10
--author="John Resig"
prints the last 10 revisions by John Resig in their simplified form.
The command to produce the list of the last five revisions made in 2013 is presented
at Listing 2-7 .
Listing 2-7. Last five revisions of 2013
$ git log --pretty=oneline --since="2012-12-20"
--until="2013-01-01" -5
How It Works
 
 
 
 
Search WWH ::




Custom Search