首页 > 其他 > 详细

[Practical Git] Format commit history with git log arguments

时间:2016-08-10 19:20:53      阅读:107      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!