GitHub Hot Board

GitHub Hot Board · リポジトリアーカイブ

git-bahn/git-graph

Command line tool to show clear git graphs arranged for your branching model (説明はリポジトリ自身のドキュメント由来です。)

Rust#command-line#command-line-tool#git

データ時点 November 1git-bahn

最高順位

#27

ライブマイルストーン · 節目の実況

998

累計スター

58

フォーク数

5

直近 30 日のランクイン日数

ライセンス: MIT最終 push: October 29未解決 Issue(PR 含む): 212026-10-25 から収集。不明 = 未収集

プロジェクト文書

git-graph

Tests GitHub Crate MIT license

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.

Graph comparison between tools

Decide for yourself which graph is the most comprehensible. 😎

If you want an interactive Git terminal application, see git-igitt, which is based on git-graph.

Features

  • View structured graphs directly in the terminal
  • Pre-defined and custom branching models and coloring
  • Different styles, including ASCII-only (i.e. no "special characters")
  • Custom commit formatting, like with git log --format="..."

Installation

Pre-compiled binaries

  1. Download the latest binaries for your platform
  2. Unzip somewhere
  3. Optional: add directory git-graph to your PATH environmental variable

Using cargo

In case you have Rust installed, you can install with cargo:

cargo install git-graph

From homebrew

If you use the homebrew package manager:

brew install git-graph

Usage

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.

Custom branching models

Branching models are configured using the files in APP_DATA/git-graph/models.

  • Windows: C:\Users\<user>\AppData\Roaming\git-graph
  • Linux: ~/.config/git-graph
  • OSX: ~/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.

Limitations

  • Summaries of merge commits (i.e. 1st line of message) should not be modified! git-graph needs them to categorize merged branches.
  • Supports only the primary remote repository origin.
  • On Windows PowerShell, piping to file output does not work properly (changes encoding), so you may want to use the default Windows console instead

Contributing

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.

現在のランクイン

  • 27

    ライブマイルストーン · 節目の実況

    998 スター · 58 fork · 次のラインまで

    節目 →

直近30日の推移

スター累計の推移

ランキング推移

日次スター増加

README にバッジを貼ろう · git-bahn/git-graph[![README にバッジを貼ろう](https://git.vaiox.xyz/api/badge/git-bahn/git-graph.svg)](https://git.vaiox.xyz/ja/repo/git-bahn/git-graph)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/ja/repo/git-bahn/git-graph"><img src="https://git.vaiox.xyz/api/badge/git-bahn/git-graph.svg" alt="README にバッジを貼ろう" height="20"></a>

← ランキングへ戻る

GitHub Hot Boardタイムマシン発見联系我们 · Contact