Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Serhat Teker
Serhat Teker

Posted on • Originally published attech.serhatteker.com on

     

Visualize Git Branch Tree

We saw how we can visualize our commits with tree-like graph in the postVisualize Git Log Tree.

git visualize log tree

Okay but sometimes I only needbranch names, since I create and add bunch of feature or fixingbugs — a.k.aanother feature. Therefore I want to know which branch is theup-to-date one or where this branch comes from. I
wanna see the branchrelations.

Luckily we have a logformat for that:

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

It will showbranch tree like below:

git branch visualize

Alias

An alias will be useful for this command since I'm gonna use it a lot.

aliasglb='git log --graph --simplify-by-decoration --pretty=format:'%d' --all'
Enter fullscreen modeExit fullscreen mode

All done!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Uomo Universale | Software Engineer | Entrepreneur | builds systems | py:go:js |
  • Location
    127.0.0.1
  • Work
    Software Engineer
  • Joined

More fromSerhat Teker

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp