Using git log to visually format or graph all branches

Git lets you see the com­mit mes­sages in sev­eral ways using the git log com­mand but some­times that is not enough.

To see a sim­ple one line list­ing with the last few dig­its of the com­mit hash, use

git log --oneline

To see an tree of the branches made using ascii, use

git log --graph --oneline --decorate --all

If you are on a mac/windows, one of the eas­i­est ways to visu­al­ize the trees is using the extremely rich built in visual tool — gitk.

gitk --all

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *