Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to display the latest commit when i use "git branch"?

Tags:

git

commit

So, on each branch if I do "git log" or "git lg", it will show a list of commits done.

Now, is there a way to display the latest commit on each branch when I enter "git branch -arg"? I find it a bit annoying/tedious to have to checkout each branch then check the commits using "git log".

like image 757
iCodeLikeImDrunk Avatar asked Jul 17 '12 13:07

iCodeLikeImDrunk


1 Answers

git branch -v lists branch names and the SHA and commit message of the latest commit on each branch.

See the git branch manual page.

like image 144
georgebrock Avatar answered Oct 05 '22 10:10

georgebrock