add command to check history of a branch

SO source : http://goo.gl/0HqbRj