I've seen some books and articles have some really pretty looking graphs of git branches and commits. How can I make high-quality printable images of git history?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
git-forest
is an excellent perl script I've been using for more than a year and I hardly use thegit log
command directly any more.These are some of the things I love about this script:
--reverse
with the graph output, which is not possible with the regulargit log
command.git log
internally to grab the list of commits, so all options that you pass togit log
can also be passed to this script as well.I have an alias using
git-forest
as follows:This is how the output looks like on a terminal:
Looking at this conversation tried to use my favorite
git-cola
&git-dag
. RunningView->DAG...
fromgit-cola
and replace Log:master --
with--all
shows pretty graph with all branches.Depends on what they looked like. I use gitx which makes pictures like this one:
You can compare
git log --graph
vs. gitk on a 24-way octopus merge (originally from http://clojure-log.n01se.net/date/2008-12-24.html):gitg: a gtk-based repository viewer, that's new but interesting and useful
http://git.gnome.org/browse/gitg
I use it currently
Gitgraph.js allows to draw pretty git branches without a repository. Just write a Javascript code that configures your branches and commits and render it in browser.
or with
metro
template:or with commit messages, authors, and tags:
Test it with JSFiddle.
Generate it with Git Grapher by @bsara.
I've added three custom commands:
git tree
,git stree
andgit vtree
. I'll go over them in that order.With
git stree
andgit vtree
I've use bash to help with the formatting.EDIT: This works with git version 1.9a. The color value 'auto' is apparently making its debut in this release. It's a nice addition because branch names will get a different color. This makes it easier to distinguish between local and remote branches for instance.