til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

Output your branches and tags as a tree on the command line

Pretty output in the terminal as found in many of the GUI interfaces

$ git log --graph --simplify-by-decoration --pretty=format:'%d' --all

Example based on DK Hostmaster EPP Service Specification.

$ git log --graph --simplify-by-decoration --pretty=format:'%d' --all
*  (HEAD -> master, origin/master, origin/HEAD)
*  (origin/prerelease-2.0, prerelease-2.0)
*
|\
| *  (origin/epp_update_domain_v1, epp_update_domain_v1)
* |
|\ \
| * |  (origin/epp_renew_domain_v1, epp_renew_domain_v1)
| |/
* |
|\ \
| * |  (origin/epp_nameserver_admin_v1, epp_nameserver_admin_v1)
| |/
* |
|\ \
| |/
|/|
| *  (origin/epp_contact_admin_v1, epp_contact_admin_v1)
* |  (tag: 1.10)
|/
*  (tag: 1.9)
*  (tag: 1.8)
*  (tag: 1.7)
*  (tag: 1.6)
*

References