Visualize Git Branch Tree
Serhat Teker
Posted on April 19, 2021
We saw how we can visualize our commits with tree-like graph in the post Visualize Git Log Tree.
Okay but sometimes I only need branch names, since I create and add bunch of feature or fixing bugs — a.k.a another feature. Therefore I want to know which branch is the up-to-date one or where this branch comes from. I
wanna see the branch relations.
Luckily we have a log format for that:
$ git log --graph --simplify-by-decoration --pretty=format:'%d' --all
It will show branch tree like below:
Alias
An alias will be useful for this command since I'm gonna use it a lot.
alias glb='git log --graph --simplify-by-decoration --pretty=format:'%d' --all'
All done!
💖 💪 🙅 🚩
Serhat Teker
Posted on April 19, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024