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.
create conda environment
conda create -n git source activate git (conda activate git on windows) conda install --file requirements.txt
run python module in interpreter
cd git-graph python
import dot_graph as dg dg.DotGraph('..').persist(show=False) dg.DotGraph('../examples/demo', nodes='btc').persist(form='svg', show=False)
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
run python program with link in PATH
ln -s ~/workspace/git-graph/git-graph/dot_graph.py /home/hduche/conda/envs/git/bin/gg cd examples/demo gg gg -p examples/demo -n btc -f svg
run as git plugin
ln -s ~/workspace/git-graph/git-graph/dot_graph.py /home/hduche/conda/envs/git/bin/git-graph git graph git graph -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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git-graph-0.0.1.dev2.tar.gz.
File metadata
- Download URL: git-graph-0.0.1.dev2.tar.gz
- Upload date:
- Size: 4.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fdf2870fd6ef0735673d7bbafe4d4feb1419e1b1b096da4db3a284ec32fab27
|
|
| MD5 |
a57bce38b17070297f2ffa4438385fc0
|
|
| BLAKE2b-256 |
bdc20031e98d96956a18b84d530e5b49eca497184152a5d0c58d7361e815e16e
|
File details
Details for the file git_graph-0.0.1.dev2-py3-none-any.whl.
File metadata
- Download URL: git_graph-0.0.1.dev2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db430e270c283111d57a8273d79f6fb225b95b5adc6f5095e332bc0d83de604d
|
|
| MD5 |
ad6e02e11967db60a00deee9d98fa815
|
|
| BLAKE2b-256 |
409150f31d18cc40c5738908f0c25fdb73236ed35a81ddc5d71d4609c24b5c94
|