I'd like to be able to see the relationship between all my branches.
Git log is a beautiful thing:
git log --graph --all --format=oneline
The output it produces is quite verbose (since I tend to make a lot of small commits on each branch). What I am looking for is a way to show only the commits that correspond to the head of a branch (just the branch name without the commit summary is fine)
Are there flags to git log
or another git
command for this?
You're after the --no-walk
option. (also --branches
instead of --all
, I'd guess).
From comments, you want the output gitk's "simple history" produces. Gitk uses --simplify-by-decoration
to get that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With