In a shared GitHub repository, I would like to use git log
to show a list of recent commits.
The current history is similar to the following:
(master)
B------Merge1--Merge2--Merge3
/ / /
- -C1 / /
- - -C2 /
- - -C3----------C4
Where the Merge
commits are result of a merged pull request, and the C
commits are coming from forks of this repository.
git log
shows something like this:
git log --oneline master
Merge3
Merge2
Merge1
B
But what I'm really interested in are the C
commits.
git log --graph
is the only possible way I found to show C1, C2 and C3.
Is there any other option (not involving --graph
) that would show C1, C2, and C3?
I would like to be able to do something like this
git log --oneline --no-merges <...insert magic here...> master
C4
C3
C2
C1
B
The only sensible thing I found in the man page is --first-parent
, but i found no way to disable or invert it.