How can I show the name of branches in `git log`? October 8, 2022 by Tarik Try the decorate option. git log --graph --all --decorate It annotates commits which are pointed to by tags or branches.