這是本文件的舊版!
由 git repo 產生 git graph
想要產生 git repo 內各分支與 commit 的圖形, 找到一個簡單的產生工具 git-big-picture
安裝程序
- 安裝環境 : Ubuntu 20.04
- Python >=3.7
- Git (1.7.1 works)
- Graphviz utility
- 安裝套件
sudo apt install git graphviz sudo pip install git-big-picture
使用方式
- 先將一個 git repo clone 下來 Exp. https://github.com/iii-org/devops-system
git clone https://github.com/iii-org/devops-system.git
- 產生簡單的 tag 分支圖(svg 格式)
git-big-picture --simplify -f svg -o our-project8.svg --history-direction upwards devops-system/
- 產生完整的 commit 分支圖(svg 格式)
git-big-picture -a -f svg -o our-project5.svg --history-direction upwards devops-system/