You are on the right track. Try using:
git log --graph --all --oneline
Here is an example:
* e96e246 H | * c12759a G |/ * 547058e F |\ | * b81eb87 E * | 26a34db D | | * 47a536f C | | * b8fa965 B | |/ |/| * | cd14ec4 A
I personally use alais in .gitconfig,
[alias] graph = log --graph --all --date=short --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %Cgreen %aN, %ad%Creset'
Which gives a similar result, but with a bit more awesomeness (branches, dates, authors):
* e96e246 (HEAD, master, origin/master) H. Developer A, 2012-12-13 | * c12759a (branch_2) G. Developer B, 2012-12-13 |/ * 547058e F. Developer C, 2012-12-11 |\ | * b81eb87 E. Developer A, 2012-11-28 * | 26a34db D. Developer C, 2012-12-11 | | * 47a536f (branch_1) C. Developer B, 2012-10-10 | | * b8fa965 B. Developer B, 2012-10-11 | |/ |/| * | cd14ec4 A. Developer B, 2012-10-10
If you have the option of using a GUI with git, gitk is usually recommended for this kind of thing. Here's the intro .
source share