Git Record

git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short

OUTPUT:
$ git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
* 1f7ec5e 2013-04-13 | Added a comment (HEAD, master) [Jim Weirich]
* 582495a 2013-04-13 | Added a default value [Jim Weirich]
* 323e28d 2013-04-13 | Using ARGV [Jim Weirich]
* 9416416 2013-04-13 | First Commit [Jim Weirich]
 Let’s look at it in detail:

--pretty="..." defines the format of the output.

%h is the abbreviated hash of the commit

%d are any decorations on that commit (e.g. branch heads or tags)

%ad is the author date

%s is the comment

%an is the author name

--graph informs git to display the commit tree in an ASCII graph layout

--date=short keeps the date format nice and short

你可能感兴趣的:(git)