zl程序教程

您现在的位置是:首页 >  后端

当前栏目

[Practical Git] Format commit history with git log arguments

logGit with format commit history arguments
2023-09-14 09:00:53 时间

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