The 'git log' Command
Learn about the “git log”command and all flags associated with it.
We'll cover the following...
git log
We have already seen git log
earlier in the course.
The output is the most recent commit, down to the oldest from the current branch.
1 git log
git log --oneline
Most of the time, I don’t care about the author or the date. In order to see more per screen, I use -–oneline
to only show the commit ID and comment per-commit.
2 git log --oneline
git log --graph
The problem with the above is that you only see a linear series of commits from the HEAD
and do not get a sense of what was merged in where.