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 oneline
, decorate
, graph
, stat
, 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