I like the ability of git to give me a visual tree showing how the commits flow on various branches, but with a lot of commits you may drown in detail.
I was wondering how I can just get the basic outline of the branch structure without all the individual commits, but with branch names put in the right locations anyway.
Much like gitk --all .
but then zoomed a bit out.
Suggestions?
EDIT: 2013-03-16 - I have still not found a good solution to this. I've found however that the history view in Git Extensions for some reason gives better information than the history view in Eclipse.
Use git log --graph or gitk . (Both also accept --all , which will show all the branches instead of just the current one.)
Locally, you can use git log . The git log command enables you to display a list of all of the commits on your current branch. By default, the git log command presents a lot of information all at once.
Click the File menu, point to Source Control, point to Branching and Merging, and then click View Hierarchy.
Using a hint from the question VonC linked in the comments, the following should suffice:
git log --oneline --decorate --all --graph --simplify-by-decoration
You can use the --simplify-by-decoration
option:
gitk --simplify-by-decoration --all
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