We saw how we can visualize our commits with tree-like graph in the postVisualize Git 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
It will showbranch tree like below:
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'
All done!
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse