DAG-oriented git browser?

2019-04-05 14:11发布

There are git intros with pretty graphs to get your head around the concept of "git's history is just a DAG". I'm wondering why there are (seemingly) few visual git browsers that builds upon this exact model for representing the history.

Other than these, all of the visual git browsers (gitk, git-gui, GitX, etc.) push aside the graph to a narrow column in favor of textual information.

Is there a git repo browser that has the DAG view as the main feature? Any platform, any language, standalone, GUI/CUI doesn't matter.

I'm not looking to solve a specific problem at hand. Just hoping a radical tool may help me reach the git zen.

Edit: related but, in OP's view, different questions:

I'm looking for more than "a tool to generate a git history DAG"; like a web browser, this hypothetical "DAG-oriented git browser" should be able to view, search, jump and filter the history graph.

4条回答
冷血范
2楼-- · 2019-04-05 14:20

ungit is a new tool that I'd been waiting for for a while, one which lets you view and manipulate git repositories by dragging around nodes in the commit DAG.

查看更多
仙女界的扛把子
3楼-- · 2019-04-05 14:28

gitup is a great tool to visualize and manipulate git history as a graph

enter image description here

查看更多
看我几分像从前
4楼-- · 2019-04-05 14:30

I don't know of a general purpose tool but I use a small script to do this which uses graphviz to do the actual graphing.

It doesn't work very well for huge graphs. I mostly use it when I do git trainings rather than to visualise my own projects. You might be able to tweak it for your purposes.

It's available here.

查看更多
成全新的幸福
5楼-- · 2019-04-05 14:31

git-forest, a non-squeezing graph tool (git log --graph --oneline, but uses Unicode's line drawing characters instead which makes for a more connected tree). Screenshot.

查看更多
登录 后发表回答