Crates.io | git-graph |
lib.rs | git-graph |
version | 0.6.0 |
source | src |
created_at | 2022-09-29 15:02:08.472702 |
updated_at | 2024-05-06 09:44:48.038801 |
description | Command line tool to show clear git graphs arranged for your branching model |
homepage | |
repository | https://github.com/mlange-42/git-graph.git |
max_upload_size | |
id | 676729 |
size | 169,099 |
A command line tool to visualize Git history graphs in a comprehensible way, following different branching models.
The image below shows an example using the GitFlow branching model for a comparison between graphs generated by git-graph (far left) versus other tools and Git clients.
GitFlow was chosen for its complexity, while any other branching model is supported, including user-defined ones.
Decide for yourself which graph is the most comprehensible. :sunglasses:
If you want an interactive Git terminal application, see git-igitt, which is based on git-graph.
git log --format="..."
Pre-compiled binaries
git-graph
to your PATH
environmental variableUsing cargo
In case you have Rust installed, you can install with cargo
:
cargo install git-graph
For detailed information, see the manual.
For basic usage, run the following command inside a Git repository's folder:
git-graph
Note: git-graph needs to be on the PATH, or you need use the full path to git-graph:
C:/path/to/git-graph/git-graph
Branching models
Run git-graph with a specific model, e.g. simple
:
git-graph --model simple
Alternatively, set the model for the current repository permanently:
git-graph model simple
Get help
For the full CLI help describing all options, use:
git-graph -h
git-graph --help
For styles and commit formatting, see the manual.
Branching models are configured using the files in APP_DATA/git-graph/models
.
C:\Users\<user>\AppData\Roaming\git-graph
~/.config/git-graph
~/Library/Application Support/git-graph
File names of any .toml
files in the models
directory can be used in parameter --model
, or via sub-command model
. E.g., to use a branching model defined in my-model.toml
, use:
git-graph --model my-model
For details on how to create your own branching models see the manual, section Custom branching models.
origin
.Please report any issues and feature requests in the issue tracker.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.