The --all parameter allows you to see all local branches (I added --oneline for a shorter example):
For example, with a commit on master and two branches of functions (each with one commit):
$ git log --graph --oneline * 389c7c6 1st commit // <- branch master $ git log --graph --all --oneline * 03a21a0 feature2 stuff // <- branch feature2 | * 2c848b3 feature1 stuff // <- branch feature1 |/ * 389c7c6 1st commit // <- branch master
This is the same as git log --graph master feature1 feature2 : the --all options add all the local branches and tags for you (refs in .git/refs/ ).
As for the commit limit: without limits, you get the whole story (accessible from the current branch).
source share