码迷,mamicode.com
首页 > 其他好文 > 详细

[Practical Git] Format commit history with git log arguments

时间:2016-08-10 19:21:11      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

When running the git log command, we can pass in options as arguments toformat the data shown for each commit. In this lesson, we show how to use the onelinedecorategraphstat, and p options with git log.

 

Show it oneline:

git log --oneline

 

git log --decorate

技术分享

 

Display the graph for each commit

git log --graph

技术分享

 

Show the changes for each commit:

git log -p

技术分享

 

Show number of isertions and deletion:

git log --stat

技术分享

 

[Practical Git] Format commit history with git log arguments

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5757845.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!