百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

Githeat

> 开发工具
开源

针对您的 git 仓库的交互式热图

196 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

针对您的 git 仓库的交互式热图

|logo|

GitHeat uses your local machine to parse the git-log of your repo and build an interactive heatmap in your terminal. You can use GitHeat to see what days are most popular, and what months are most active.

To start the interactive heatmap, run:

    $ githeat.interactive

|video|

or skip the interactive part and print the heatmap directly by running:

    $ githeat

|githeat_cli|

Want to merge in the months? run

    $ githeat --month-merge

|githeat_cli_month_merge|

Want to separate each day block? run

    $ githeat --separate

|githeat_cli_separate|

Want to change the width of each block? choose between thin, reg, thick:

    $ githeat --width {thick,reg,thin}

|githeat_cli_width_thin|

Want to change the color of the graph? choose between grass, sky, fire

    $ githeat --color {grass,fire,sky}

|githeat_cli_color_fire|

Want to show who are the top 10 most committers? run and it will parse the days for you:

    $ githeat --stat --stat-number 10

|githeat_cli_stat_stat_number_10|

Want to filter out commits by author? write regex in the author argument:

    $ githeat --author="Will"

Want to filter out commits by keywords in commit? write regex in the grep argument:

    $ githeat --grep="Fix"

Have a specific YAML configuration file you want to use? pass it to the config argument:

    $ githeat --config PATH_TO_CONFIG.yaml

Need help? run:

  .. code-block:: html

    $ githeat -h

    usage: githeat.py [-h] [-c FILE] [--gtype {inline,block}]
                     [--width {thick,reg,thin}] [--days DAYS [DAYS ...]]
                      [--color {grass,fire,sky}] [--stat-number STAT_NUMBER]
                      [--stat] [--separate] [--month-merge] [--author AUTHOR]
                      [--grep GREP] [-v]
                      [--logging {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]

    githeat: Terminal Heatmap for your git repos

    optional arguments:
      -h, --help            show this help message and exit
      -c FILE, --config FILE
                            Specify YAML config file
      --gtype {inline,block}
                            Choose how you want the graph to be displayed
      --width {thick,reg,thin}
                            Choose how wide you want the graph blocks to be
      --days DAYS [DAYS ...]
                            Choose what days to show. Please enter list of day
                            abbreviations or full name of week
      --color {grass,fire,sky}
                            Choose type of coloring you want for your graph
      --stat-number STAT_NUMBER
                            Number of top committers to show in stat
      --stat, -s            Show commits stat
      --separate, -b        Separate each day
      --month-merge         Separate each month
      --author AUTHOR, -a AUTHOR
                            Filter heatmap by author. You can also write regex
                            here
      --grep GREP, -g GREP  Filter by keywords in commits
      -v, --version         print version and exit
      --logging {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
                            logger level

or for the interactive help

  .. code-block:: html

    $ githeat.interactive -h
     usage: githeat.py [-h] [-c FILE] [--width {thick,reg,thin}]
              [--days DAYS [DAYS ...]] [--color {grass,fire,sky}]
              [--month-merge] [--hide-legend] [--author AUTHOR]
              [--grep GREP] [-v]
              [--logging {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]

     githeat: Terminal Heatmap for your git repos

     optional arguments:
       -h, --help            show this help message and exit
       -c FILE, --config FILE
                             Specify YAML config file
       --width {thick,reg,thin}
                             Choose how wide you want the graph blocks to be
       --days DAYS [DAYS ...]
                             Choose what days to show. Please enter list of day
                             abbreviations or full name of week
       --color {grass,fire,sky}
                             Choose type of coloring you want for your graph
       --month-merge         Separate each month
       --hide-legend         Hide legend
       --author AUTHOR, -a AUTHOR
                             Filter heatmap by author. You can also write regex
                             here
       --grep GREP, -g GREP  Filter by keywords in commits
       -v, --version         print version and exit
       --logging {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
                             logger level

Minimum Requirements

  • Python 2.7

Optional Requirements

.. _py.test: http://pytest.org .. _Sphinx: http://sphinx-doc.org

  • py.test_ 2.7 (for running the test suite)
  • Sphinx_ 1.3 (for generating documentation)

Basic Setup

Install using pip:

.. code-block::

$ pip install githeat

Or to obtain the latest most-up-to-date version, clone the repo and install it from source:

.. code-block::

$ git clone https://github.com/AmmsA/Githeat
$ cd Githeat && python setup.py install

Install for the current user:

.. code-block::

$ python setup.py install --user

Run the application:

.. code-block::

$ python -m githeat --help

Run the test suite:

.. code-block::

$ py.test test/

Build documentation:

.. code-block::

$ cd doc && make html

Deploy the application in a self-contained Virtualenv_ environment:

.. _Virtualenv: https://virtualenv.readthedocs.org

.. code-block::

$ python deploy.py /path/to/apps
$ cd /path/to/apps/ && githeat/bin/cli --help

.. |logo| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/logo.png :width: 100px :alt: githeat :target: https://github.com/ammsa/Githeat .. |video| image:: https://asciinema.org/a/812lm3uzd9yk8dbe0aehj5jvj.png :target: https://asciinema.org/a/812lm3uzd9yk8dbe0aehj5jvj .. |githeat_cli| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli.png .. |githeat_cli_month_merge| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli_month_merge.png .. |githeat_cli_separate| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli_separate.png .. |githeat_cli_width_thin| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli_width_thin.png .. |githeat_cli_color_fire| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli_color_fire.png .. |githeat_cli_stat_stat_number_10| image:: https://raw.githubusercontent.com/AmmsA/Githeat/master/website/static/images/githeat_cli_stat_stat_number_10.png

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythongitinteractivevisualization

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具