Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

View your Git repository as a Directed Acyclic Graph (DAG)

Git is by far the most popular version control system.

However learning or teaching Git can seem daunting because of its impressive number of commands.

As Git is very lightweight, a good practice to better grasp the impact of a git command is to quickly setup a test project and experiment the effects of the command on it.

Git-graph is a git plugin written in Python that displays your git repository's inner content as a Directed Acyclic Graph (DAG). This visual representation of git internal data before and after each command considerably improves the learning curve.

install git-graph

pip install git-graph

run git-graph

git graph git graph -p examples/demo -n btc -f svg

run python module in interpreter

cd git_graph python

import dot_graph as dg dg.DotGraph('..').persist(conceal=True) dg.DotGraph('../examples/demo', nodes='btc').persist(form='svg', conceal=True)

run python program

python git_graph/dot_graph.py python git_graph/dot_graph.py -p examples/demo -n btc -f svg

run python program with shebang

./git_graph/dot_graph.py ./git_graph/dot_graph.py -p examples/demo -n btc -f svg

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-graph-0.0.1.dev4.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file git-graph-0.0.1.dev4.tar.gz.

File metadata

  • Download URL: git-graph-0.0.1.dev4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for git-graph-0.0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 7ff5698d3c6b93a95acd601dd6cb0db05194fcb7a526afc366d1daccfd2b41a6
MD5 d215c41f17b427833984bf179cd6e52b
BLAKE2b-256 d754334a46de22d54ffd2e0db08fceb13003386b4a47ea251d1f1e8e0db50c0c

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page