Is there a way to show only the branch structure in Git? There are a number of tools that show the commits graphically, but in my case the list is so long that it’s impossible to see the structure. I guess git-log could be the answer, but I can’t find any switches that only show the branching commits. This along with “–graph –branches –oneline –all” could do the trick.
EDIT: I’m looking for a way to do this in Ubuntu.
I am not sure about what you mean by “branch structure”.
git logcan help visualize the branches made through commits (See this blog post):But if you only wants the different HEAD branches, you could try something along the lines of:
(using the
column command, and here only for commits since the lastorigin/mastercommit)Note: Jakub Narębski recommands adding the option
--simplify-by-decoration, see his answer.